home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / ibm370 / ikmker.txt < prev    next >
Text File  |  2020-01-01  |  137KB  |  2,854 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.                    IBM SYSTEM/370 MUSIC KERMIT USER'S GUIDE
  17.  
  18.  
  19.                                   VERSION 4.3
  20.  
  21.  
  22.                                  John Chandler
  23.  
  24.                   Harvard/Smithsonian Center for Astrophysics
  25.  
  26.                               September 30, 1993
  27.  
  28.  
  29.  
  30.                             Copyright (C) 1981,1993
  31.             Trustees of Columbia University in the City of New York
  32.  
  33.      Permission is granted to any individual or institution to use, copy,
  34.     or redistribute this document so long as it is not sold for profit, and
  35.                   provided this copyright notice is retained.
  36.                                Table of Contents
  37.  
  38. 1. IBM 370 KERMIT                                                             1
  39.  
  40.    1.1. Translation Tables                                                    1
  41.    1.2. File Attributes                                                       2
  42.    1.3. Program Operation                                                     2
  43.    1.4. Kermit-370 Subcommands                                                3
  44.    1.5. Before Connecting to the Mainframe                                    9
  45.    1.6. Trouble-shooting Protocol Converters                                  9
  46.    1.7. After Returning from Kermit-370                                      10
  47.    1.8. What's New                                                           10
  48.    1.9. What's Missing                                                       11
  49.    1.10. Further Reading                                                     11
  50.  
  51. 2. IBM MUSIC/SP KERMIT                                                       12
  52.  
  53.    2.1. The MUSIC/SP File System                                             12
  54.    2.2. Program Operation                                                    12
  55.    2.3. Kermit-MUSIC Subcommands                                             13
  56.    2.4. How to build an executable version of Kermit-MUSIC                   13
  57.    2.5. What's New                                                           14
  58.    2.6. What's Missing                                                       14
  59.  
  60. Index                                                                        15
  61.                                 List of Tables
  62.  
  63.    Table 1-1:   Allowed character set combinations in Kermit-370              1
  64.    Table 1-2:   EBCDIC (hexadecimal) code points for LATIN1                   2
  65.    Table 1-3:   Character graphics for EBCDIC codes                           2
  66.    Table 1-4:   Error messages and codes for Kermit-370                      11
  67. 1. IBM 370 KERMIT
  68.  
  69. Program:       John  Chandler  (Harvard/Smithsonian  Center  for Astrophysics);
  70.                contributions from Vace Kundakci and Daphne Tzoar (Columbia  U),
  71.                Bob  Shields  (U.  Maryland),  Greg  Small  (UC Berkeley), Clark
  72.                Frazier (Harvard Bus. Sch.), Bob  Bolch  and  Steve  Blankinship
  73.                (Triangle),  Ron  Rusnak  (U.  Chicago),  Roger  Fajman and Dale
  74.                Wright (NIH), Andre Pirard (U. Liege),  Pierre  Goyette  (McGill
  75.                U.)
  76. Language:      IBM 370 Assembler
  77. Documentation: John Chandler (CfA)
  78. Version:       4.3
  79. Date:          1993 September
  80.  
  81. Kermit-370  is  a  family  of  programs  implementing  the KERMIT file transfer
  82. protocol for IBM 370-series mainframes (System/370,  303x,  43xx,  308x,  3090,
  83. etc.)  under  a  variety  of  operating  systems.    Kermit-370  operates  over
  84. asynchronous ASCII communication lines attached to a 3705-style or protocol en-
  85. veloping  3708  front  end  ("TTY" or line-mode devices), to a Series/1 or 4994
  86. running the Yale ASCII Terminal Communication System  or  the  IBM  7171  ASCII
  87. Device  Control Unit or a 9370 with ASCII subsystem ("SERIES1" devices), to the
  88. IBM 3174 protocol converter at level B2.0 or  higher  ("AEA"  devices),  or  to
  89. front-ends with graphics pass-through mode, such as the Datastream/Leedata 8010
  90. and PCI 1076 ("GRAPHICS" devices).  As of this writing, the  pending  implemen-
  91. tation  of  full(er)  7171 compatibility in the program product SIM3278 has not
  92. been completed.    The  non-line-mode  devices  are  often  called  full-screen
  93. devices.  For more details on front ends, see the section SET CONTROLLER.
  94.  
  95. The  source is coded in IBM 370 assembly language and is compatible with the F,
  96. VS, and H assemblers.  The code is divided into sections, some generic and some
  97. specific  to  an individual operating system.  While the details of file-system
  98. and supervisor interaction vary widely among  the  systems  available  for  IBM
  99. 370's, the basic features are essentially the same.  This chapter describes the
  100. features common to all variants of Kermit-370, and a separate chapter will deal
  101. with the system-specific details for each variant.
  102.  
  103. IBM  370 systems have some peculiarities that users should be aware of.  First,
  104. these systems are essentially half-duplex; the communication  line  must  "turn
  105. around"  before  any  data  can  be  sent.    The  "TTY"  devices  are strictly
  106. half-duplex, and even the "SERIES1", "GRAPHICS", and  "AEA"  devices,  although
  107. they  maintain  full-duplex  communication  with  the terminal, must transmit a
  108. block at a time to the mainframe.  The fact that a  packet  has  been  received
  109. from the IBM system through a "TTY" device is no guarantee that it is ready for
  110. a reply; generally, the true indicator of  readiness  is  the  line  turnaround
  111. character  (XON), which the operating system sends immediately before issuing a
  112. read request.  On some systems, however, it is possible for Kermit to  do  away
  113. with  the  system-supplied  turnaround  and  schedule read requests immediately
  114. after the corresponding writes.  It is up to the user to tell the other  Kermit
  115. how it must conform to the requirements of the IBM mainframe.
  116.  
  117. A  second distinction is that disk files are encoded using the EBCDIC character
  118. set.  Consequently, there are three layers of character translation on  packets
  119. exchanged  on  a  "TTY"  device.    For  an incoming packet, the outer layer is
  120. provided by the operating system, which translates all characters from ASCII to
  121. EBCDIC.    Kermit-370 must then translate the packets back to ASCII (the middle
  122. layer) in order to calculate and verify the checksum.  Data arriving through  a
  123. "SERIES1",  "GRAPHICS", or "AEA" device are still in ASCII and therefore bypass
  124. the two outer layers.  In any case, Kermit-370 translates  text  files  finally
  125. into  EBCDIC (the inner layer) before storing on disk.  When Kermit-370 sends a
  126. file, the opposite translations occur.  The middle-layer tables used by  Kermit
  127. must  be  the  inverses  of the corresponding outer-layer ones used by the host
  128. operating system if file transfers are to work at all.  If necessary, the  sys-
  129. tem  programmer  should  add the appropriate SET TATOE/TETOA/TTABLE subcommands
  130. (q.v.)  to the global INIT file.  Indeed, it is usually  a  good  idea  to  set
  131. TTABLE  ON  in  the  global INIT file to force using different built-in sets of
  132. tables for the inner and middle layers whenever the system has  "TTY"  devices.
  133. The standard 7-bit ASCII-to-EBCDIC translations can be found in the Appendix or
  134. the IBM System/370 Reference Card.  See the section  "Translation  Tables"  for
  135. more details.
  136.  
  137. Another  distinction  of  IBM  370's  is  that they store and retrieve files as
  138. records rather than byte streams.  Records may be either fixed-length with some
  139. sort of padding (as needed) or varying-length with some sort of (generally hid-
  140. den) delimiters.  Thus, Kermit-370 must assemble  incoming  data  packets  into
  141. records  by  stripping  off carriage return-linefeed pairs (CRLF's) and padding
  142. with blanks or truncating as needed and must strip trailing blanks  and  append
  143. CRLF's to outgoing records.  (See the SET FILE TYPE subcommand.)  Further, disk
  144. files typically have the records combined into blocks for efficiency.  One con-
  145. sequence  of  this form of storage is that files have attributes describing the
  146. component records: maximum record length (LRECL), record  format  (RECFM),  and
  147. sometimes block size (BLKSIZE).
  148.  
  149. As  mentioned before, Kermit-370 is a family of programs.  At present, only the
  150. CMS, TSO, MUSIC, ROSCOE, and CICS variants are operational.  Variants for DOS-4
  151. and MTS have at least reached the "drawing board," but no others have even been
  152. started as of this writing.  Volunteers are always welcome to  port  Kermit-370
  153. to  other operating systems or add new features to the existing family.  Anyone
  154. interested should first get in touch with the Center for  Computing  Activities
  155. at  Columbia  University  to find out what projects of a similar nature are al-
  156. ready pending (and thereby prevent unnecessary duplication of effort).    There
  157. are  supplemental  files in the Kermit distribution with explanations of how to
  158. go about porting Kermit-370 and how to add support for new terminal  controller
  159. types.    For  details, refer to the installation guide for the variant of your
  160. choice.
  161.  
  162.  
  163. 1.1. Translation Tables
  164.  
  165. Traditionally, IBM mainframe Kermits have translated 7-bit ASCII characters  to
  166. 8-bit   EBCDIC  characters  and  ignored  the  "parity"  bit  in  the  process.
  167. Similarly, the 8-bit EBCDIC characters  have  been  mapped  onto  7-bit  ASCII,
  168. thereby  producing  many  ambiguities  in  translating  the ASCII files back to
  169. EBCDIC.  These ambiguities fall into  two  categories:  EBCDIC  characters  not
  170. representable  in ASCII have been rendered as ASCII nulls, and alternate EBCDIC
  171. representations of characters such as the  ASCII  backslash  have  been  mapped
  172. together,  but  at  least no two 7-bit ASCII characters are translated into the
  173. same EBCDIC character.  The ambiguities were tolerable  in  environments  where
  174. the  traditionally  non-printable  characters never occurred in text files, but
  175. text processing has increasingly tended to include such  characters  for  math-
  176. ematical  formulas or for languages other than English.  Ultimately, the trans-
  177. lation tables must become completely invertible, lest information  be  lost  in
  178. the  transfer.    There  has long been an option to replace parts of the trans-
  179. lation tables via commands from the user (or imbedded in the INIT  files),  but
  180. such  replacements were always supported locally and were, therefore, basically
  181. non-standard.
  182.  
  183. The concept of standard translations is currently in a state of flux because of
  184. the  proliferation  of 8-bit code pages and the countervailing efforts at stan-
  185. dardization among groups such as the ISO and Kermit developers.  In particular,
  186. Kermit-370  now  supports  a set of EBCDIC and "extended ASCII" code pages with
  187. built-in translation tables and automatic identification of the "ASCII"  trans-
  188. fer  character  set via Attribute packets.  This facility supports files stored
  189. using numerous IBM Country Extended Code  Pages  and  permits  transfers  using
  190. character  sets  ASCII,  ARABIC,  CYRILLIC, GREEK, HEBREW, JAPAN-EUC, KATAKANA,
  191. LATIN1, LATIN2, LATIN3, and THAI.  See Table 1-1 for a display of  the  allowed
  192. combinations  of  character  sets.   See also file ISOK7.TXT in the Kermit dis-
  193. tribution for a somewhat  outdated  description  of  the  protocol  extensions.
  194. Kermit-370   currently   supports   text  files  in  the  following  languages:
  195. Afrikaans, Albanian, Arabic, Bulgarian, Byelorussian, Catalan, Czech, Croatian,
  196. Danish, Dutch, English, Esperanto, Faeroese, Finnish, French, Gaelic, Galician,
  197. German, Greek, Hebrew, Hungarian, Icelandic, Italian,  Japanese  (Katakana  and
  198. Kanji),  Lao,  Latin,  Macedonian, Maltese, Norwegian, Polish, Portuguese, Que-
  199. chua, Romanian, Russian, Serbian, Slovak, Slovene, Spanish,  Swahili,  Swedish,
  200. Thai,  Turkish,  Ukrainian, and Volapuk.  Visual representations of the charac-
  201. ters sets may be found in the ISO register (for transfer) and  in  various  IBM
  202. documents, such as S544-3156 "About Type" (for files).
  203.  
  204. Kermit itself normally operates in English, but there are versions with the in-
  205. teractive messages translated into other languages.   The  currently  available
  206. languages  are  Czech,  Dutch,  Finnish,  French, German, Italian, Polish, Por-
  207. tuguese, Russian, and Spanish.  Special thanks to  Petr  Adelsberger,  Mauricio
  208. Alvarenga,  Lorenzo  Beltrame,  Janusz  Bien,  Jose  Eduardo  de Lucca, Richard
  209. Gatersleben, Kauko Haumalainen, Jaroslaw Kurowski, Roberto Magana, Alberto Rio,
  210. Christian  Robert,  Gisbert  Selke,  Karel  Smuk,  Rob  van der Wal, Konstantin
  211. Vinogradov, and Joachim Wlodarz for preparing these translations.  See the  in-
  212. stallation  guide for details on the alternate-language versions.  There are no
  213. translations yet of the help files, nor of this document.
  214.  
  215. -------------------------------------------------------------------------------
  216.  
  217.                               Transfer character set
  218.  
  219.   Local  ASCII ARAB. CYR. GREEK HEB. JAPAN KATAK.  L1 L2 L3 THAI
  220.  
  221.  CP037     *                                       **
  222.  CP273                                             **
  223.  CP275                                             **
  224.  CP277                                             **
  225.  CP278                                             **
  226.  CP280                                             **
  227.  CP281                                 *           **
  228.  CP282                                             **
  229.  CP284                                             **
  230.  CP285                                             **
  231.  CP290                                 *     **
  232.  CP297                                             **
  233.  CP420           **
  234.  CP424                           **
  235.  CP500     *                           *           **
  236.  CP838                                                       **
  237.  CP870                                                **
  238.  CP871                                             **
  239.  CP875                      **
  240.  CP880     *          **
  241.  CP905                                                   **
  242.  CZECH                                                 *
  243.  DKOI      *          ***
  244.  EBCDIC    *      *                               ***
  245.  H-EBCD                                *      *
  246.  KANJI                                 *
  247.  
  248.          Table 1-1:  Allowed character set combinations in Kermit-370
  249.  
  250. All  allowed  combinations  are  marked  with  asterisks,  and  the   preferred
  251. combination in each row or column is the one with the most asterisks.  Whenever
  252. a character set is specified, either directly or through an  Attribute  packet,
  253. the other category of character set is checked to see if it makes up an allowed
  254. combination.  If not, it is forced to the preferred character set.
  255.  
  256. -------------------------------------------------------------------------------
  257.  
  258. As nearly as possible, the tables in Kermit-370 are invertible, but all of  the
  259. character  sets  reserve many (typically 65) code points for control characters
  260. and leave them officially undefined and unprintable.  This applies both to  IBM
  261. code  pages and ISO standard 8-bit character sets.  Although 33 of the controls
  262. have widely accepted mappings, the others do not, and Kermit-370 currently uses
  263. those  given  in an appendix of IBM's VS/Fortran Reference Manual.  Needless to
  264. say, such translations are arbitrary and may be invalidated by future decisions
  265. at  IBM or ISO.  Still, most of the translations are likely to be stable in the
  266. long run.  Table 1-2 shows the current translation from LATIN1 to EBCDIC, which
  267. is likely to be the most often used.  Other translations, including the reverse
  268. ones, may be displayed using the TDUMP subcommand of Kermit-370.
  269.  
  270. -------------------------------------------------------------------------------
  271.  
  272.       -0 -1 -2 -3 -4 -5 -6 -7 -8 -9 -A -B -C -D -E -F
  273.  
  274.   0-  00 01 02 03 37 2D 2E 2F 16 05 25 0B 0C 0D 0E 0F
  275.   1-  10 11 12 13 3C 3D 32 26 18 19 3F 27 1C 1D 1E 1F
  276.   2-  40 5A 7F 7B 5B 6C 50 7D 4D 5D 5C 4E 6B 60 4B 61
  277.   3-  F0 F1 F2 F3 F4 F5 F6 F7 F8 F9 7A 5E 4C 7E 6E 6F
  278.   4-  7C C1 C2 C3 C4 C5 C6 C7 C8 C9 D1 D2 D3 D4 D5 D6
  279.   5-  D7 D8 D9 E2 E3 E4 E5 E6 E7 E8 E9 AD E0 BD 5F 6D
  280.   6-  79 81 82 83 84 85 86 87 88 89 91 92 93 94 95 96
  281.   7-  97 98 99 A2 A3 A4 A5 A6 A7 A8 A9 C0 4F D0 A1 07
  282.   8-  20 21 22 23 24 15 06 17 28 29 2A 2B 2C 09 0A 1B
  283.   9-  30 31 1A 33 34 35 36 08 38 39 3A 3B 04 14 3E FF
  284.   A-  41 AA 4A B1 9F B2 6A B5 BB B4 9A 8A B0 CA AF BC
  285.   B-  90 8F EA FA BE A0 B6 B3 9D DA 9B 8B B7 B8 B9 AB
  286.   C-  64 65 62 66 63 67 9E 68 74 71 72 73 78 75 76 77
  287.   D-  AC 69 ED EE EB EF EC BF 80 FD FE FB FC BA AE 59
  288.   E-  44 45 42 46 43 47 9C 48 54 51 52 53 58 55 56 57
  289.   F-  8C 49 CD CE CB CF CC E1 70 DD DE DB DC 8D 8E DF
  290.  
  291.  
  292.             Table 1-2:  EBCDIC (hexadecimal) code points for LATIN1
  293.  
  294. This table shows the values of the EBCDIC equivalents for the  code  points  in
  295. the  LATIN1  character  set.    The  values  are  arranged  in LATIN1 collating
  296. sequence, and the rows and columns  are  labeled  with  the  first  and  second
  297. digits,  respectively,  of the LATIN1 code points.  For example, LATIN1 code 41
  298. (hex) is upper-case "A", and the intersection of row "4-" and column  "-1"  has
  299. the  value  C1 (hex), which is the EBCDIC code for "A".  Rows "0-", "1-", "8-",
  300. and "9-" are officially undefined in ISO 8859-1 and so, in principle, could  be
  301. changed  at  some  future time, especially "8-" and "9-".  Note that this table
  302. uses a format close to that of the TDUMP subcommand  and  of  the  Kermit  code
  303. itself,  but character-set tables are often displayed with the rows and columns
  304. interchanged.
  305.  
  306. -------------------------------------------------------------------------------
  307.  
  308. Besides converting files for transmission, Kermit-370 must also  compensate for
  309. the  EBCDIC/ASCII translation performed by some front ends and must, therefore,
  310. be able to apply the exact reverse translations on both input and output.  This
  311. is the "middle layer" of translation described earlier for "TTY" devices.  Con-
  312. sider the fate of a Left Square Bracket character in an  inbound  packet  on  a
  313. "TTY"  line.    It  begins  as ASCII code x'5B' (91 decimal), but the front end
  314. translates it to EBCDIC before presenting it to Kermit-370.  In  this  example,
  315. suppose it becomes EBCDIC code x'4A' (74 decimal) instead of the standard x'AD'
  316. (173 decimal).  Then, Kermit must be primed with a SET TETOA  74  91  so  that,
  317. when  reconstructing  the  original  ASCII  packet, the character becomes x'5B'
  318. again.  Otherwise, the packet checksum will appear invalid.  Kermit comes  with
  319. a  pair  of  default tables, but it may be necessary to customize them, as this
  320. example shows.  The following procedure will reveal any changes  needed.    The
  321. procedure  has  two  stages:  the first is for any line-mode front end, and the
  322. second only for front ends capable of full 8-bit data transfer.  Note that, al-
  323. though  the discussion refers to hexadecimal values, the Kermit-370 SET subcom-
  324. mands require decimal numeric arguments.  Also, note that  this  procedure  as-
  325. sumes  you  will  run  Kermit  with  TTABLE  set  on;  hence, the references to
  326. Kermit-370 tables are to TATOE and TETOA.  If you  choose  to  define  Kermit's
  327. file  translation  to  match that of the front end, you should leave TTABLE set
  328. off and remove the T's from the SET subcommands described  below.    This  will
  329. also  turn  off  the automatic switching of translation tables according to the
  330. Attribute packets received from the other Kermit.  Under CMS, you must issue  a
  331. CMS SET INPUT and a CMS SET OUTPUT before starting this procedure.
  332.  
  333.    1. Create  a file containing all the non-control EBCDIC characters (hex
  334.       codes 40-FF) and display the file on any  available  ASCII  terminal
  335.       hooked up to the line-mode front end in question.
  336.  
  337.    2. If any printable ASCII character is missing from the display, Kermit
  338.       cannot work through this front end (unless you modify the tables  in
  339.       the front end itself).
  340.  
  341.    3. If any ASCII character appears twice, there is no cause for alarm.
  342.  
  343.    4. If any ASCII character does not appear where it should, according to
  344.       Table 1-3, a SET TATOE must be added to the system INIT file.    For
  345.       example, if EBCDIC code 5F (Not Sign, according to the Appendix) ap-
  346.       pears as an ASCII Tilde (7E), but EBCDIC A1 (Tilde) does not, a  SET
  347.       TATOE  126  95 is required.  Warning: characters considered unprint-
  348.       able by the front end are likely to be filtered  out  entirely  when
  349.       you display the file; do not expect the display to line up just like
  350.       Table 1-3.
  351.  
  352.    5. Create a file on the mainframe using an ASCII  terminal  for  input,
  353.       and  enter  all 95 printable ASCII characters in collating sequence.
  354.       You  can  presumably  save  time  by  skipping  the  52  upper-  and
  355.       lower-case letters and the 10 digits.
  356.  
  357.    6. Display  the file from the previous step in hexadecimal or other bi-
  358.       nary form.
  359.  
  360.    7. If any duplicates appear among the 95 characters (or 33, if you have
  361.       taken the short cut), Kermit cannot work through this front end (un-
  362.       less you modify the tables in the front end).
  363.  
  364.    8. Compare the hexadecimal codes with rows 2-7 of Table 1-2.  If a dis-
  365.       crepancy appears, a SET TETOA must be added to the system INIT file.
  366.       For example, if ASCII Left Bracket (5B) appears as EBCDIC 4A, a  SET
  367.       TETOA 74 91 is needed.  At this point, the first stage is complete.
  368.  
  369.    9. If 8-bit line-mode file transfer is desired, you must now verify the
  370.       extended character set.  Display the file  of  EBCDIC  codes  again,
  371.       this  time  using a terminal with extended character set display, or
  372.       capture the session with a micro Kermit and  display  the  resulting
  373.       file  in  hexadecimal.   If any code in the range A0-FE does not ap-
  374.       pear, the front end will not  allow  8-bit  Kermit  data  transfers.
  375.       Generate  SET TATOE entries for the entire range, as needed, just as
  376.       in the example given for 7-bit codes.  If  the  front  end's  trans-
  377.       lation  tables  are  documented,  it  may be easier to work from the
  378.       manual, but you must be sure that you have tables  for  all  of  the
  379.       translations that occur on the data path.
  380.  
  381.   10. Create  a file of the 95 extended ASCII codes A0-FE, if possible, by
  382.       using a terminal capable of transmitting those codes or transmitting
  383.       a  pre-made  file "raw".  If necessary, use the appropriate table(s)
  384.       in the manual(s) instead.
  385.  
  386.   11. Again, if any duplicates appear, this  front  end  is  incapable  of
  387.       8-bit  file transfers.  Otherwise, generate SET TETOA entries as be-
  388.       fore.
  389.  
  390. -------------------------------------------------------------------------------
  391.  
  392.        0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
  393.  
  394.   4-                                    .  <  (  +  |
  395.   5-   &                             !  $  *  )  ;  ^
  396.   6-   -  /                             ,  %  _  >  ?
  397.   7-                              `  :  #  @  '  =  "
  398.   8-      a  b  c  d  e  f  g  h  i
  399.   9-      j  k  l  m  n  o  p  q  r
  400.   A-      ~  s  t  u  v  w  x  y  z           [
  401.   B-                                          ]
  402.   C-   {  A  B  C  D  E  F  G  H  I
  403.   D-   }  J  K  L  M  N  O  P  Q  R
  404.   E-   \     S  T  U  V  W  X  Y  Z
  405.   F-   0  1  2  3  4  5  6  7  8  9
  406.  
  407.  
  408.                 Table 1-3:  Character graphics for EBCDIC codes
  409.  
  410. This table shows the representations of the EBCDIC  codes  arranged  in  EBCDIC
  411. collating  sequence,  row  by  row.    Codes  that do not correspond to ISO 646
  412. characters (7-bit ASCII), have been left blank.  One special case is the EBCDIC
  413. code 5F, which represents a Not Sign in IBM's CP037, but which is traditionally
  414. mapped to the ASCII Circumflex, as shown here.  WARNING: this manual  may  have
  415. been  printed  on  a  device  that  maps  characters  differently.  Consult the
  416. Appendix to verify.
  417.  
  418. -------------------------------------------------------------------------------
  419.  
  420.  
  421. 1.2. File Attributes
  422.  
  423. Kermit-370 attempts to send and receive file attributes along  with  the  files
  424. themselves.    Before  Kermit receives a file, it compares the Length attribute
  425. (if available) with the amount of disk space available (if known) so  that  the
  426. file can be rejected if it will not fit.  In addition, the Type, Access, Encod-
  427. ing, Disposition, and Format attributes, if any, are interpreted  in  order  to
  428. match  the  received file to the original as nearly as possible.  All other at-
  429. tributes (including Date) are simply ignored.  For Type, Kermit recognizes text
  430. and binary specifications; for Access, it recognizes append, normal, and super-
  431. sede; for Encoding, it recognizes ASCII, extended, and EBCDIC (which it  treats
  432. as  binary);  for Disposition, it recognizes mail, print, and job; and for For-
  433. mat, it recognizes text, D-binary, V-binary, binary,  and  LRECL.    Any  other
  434. values are rejected.
  435.  
  436. On  sending a file, if the other Kermit is willing to accept Attribute packets,
  437. Kermit-370 sends the Type, Encoding, Format, Date, and Length  attributes  (un-
  438. less  some  or  all of them have been disabled -- see the SET ATTRIBUTE subcom-
  439. mand).
  440.  
  441. Unfortunately, the set of file attributes defined in the Kermit protocol is not
  442. well  matched  to  the  needs  of  IBM  370  file  systems, so that much of the
  443. machinery for creating and interpreting of Attribute packets is useless.    For
  444. example, the "Format" attribute, which should logically specify the record for-
  445. mat of the received file, gives only the format of the file in transmission and
  446. cannot  distinguish  between  fixed-length  and varying-length records for text
  447. files.  This limitation is partly due to the fact that  other  Kermits  do  not
  448. generally  support the same attributes.  In short, even if the protocol made it
  449. possible, some of the important attributes would  never  be  specified  anyway.
  450. Nonetheless,  efforts  are  being  made  to extend the protocol to be more com-
  451. prehensive.
  452.  
  453.  
  454. 1.3. Program Operation
  455.  
  456. Kermit-370 can be invoked directly or from a  command  procedure.    In  either
  457. case,  it  reads  and executes subcommands sequentially until directed to quit,
  458. and then returns.   A  subcommand  consists  of  one  or  more  fields  (words)
  459. separated by spaces or commas.
  460.  
  461. Upon  startup,  the  program looks for two (optional) initialization files, one
  462. system-wide and a second specific to the user.  Both filespecs are, of  course,
  463. system-dependent.    The  purpose  of these files is to allow Kermit to be cus-
  464. tomized for a particular system and for  a  user's  specific  settings  without
  465. changing  the source code.  The system-wide file, which is maintained by a sys-
  466. tems programmer, should contain Kermit subcommands that all users would need to
  467. issue  in  order for Kermit to run on the system, such as subcommands to modify
  468. the ASCII/EBCDIC tables used by Kermit-370.  The user-specific  file,  if  any,
  469. should  contain subcommands that the user generally issues every time Kermit is
  470. run.  Kermit-370 executes any subcommands found in these files as  though  they
  471. were typed at the terminal.  Here is a sample INIT file:
  472.  
  473.     * Asterisk in column one is a comment.
  474.     set transfer character-set latin1
  475.     set file collision rename
  476.     set block 3
  477.  
  478. During  interactive  execution,  you  may  use  the built-in help feature while
  479. typing Kermit-370 subcommands.  A question mark ("?") typed at almost any point
  480. in a subcommand, followed by a carriage return, produces a brief description of
  481. what is expected or possible at that point.  Moreover, mistyping  a  subcommand
  482. will generally produce a helpful error message or a list of possible options at
  483. the  point  of  error.    Keywords  in  such  lists  are  displayed  with   the
  484. minimum-length  abbreviation  in upper case and the remainder, if any, in lower
  485. case.  In entering Kermit subcommands, any keyword may be shortened to any sub-
  486. string that contains the minimum abbreviation.
  487.  
  488. Besides  knowing  the mechanics of entering Kermit subcommands and interpreting
  489. responses, the user must understand  which  subcommands  are  necessary.    The
  490. default  values for Kermit-370 options have, in some cases, been constrained by
  491. a desire for continuity, so that some of the  default  behavior  is  distinctly
  492. "suboptimal."    An  example of this is the traditional 80-byte default RECEIVE
  493. packet size, which generally gives much slower transmission than a size of 1000
  494. or  more.    Such options are flagged in this chapter with a notation that they
  495. perhaps ought to be set in the INIT files.  Note, however, that  the  interplay
  496. of Kermit protocol sometimes provides a performance upgrade with no special ac-
  497. tion required from the Kermit-370 user.    An  example  of  this  is  the  SEND
  498. packet-size, which is always under the control of the other Kermit.  Kermit-370
  499. always sends packets as long as the other Kermit allows, unless  the  frequency
  500. of  transmission  errors indicates that shorter packets would be more efficient
  501. (see the subcommand SET SPEED).
  502.  
  503. Kermit-370 also attempts to produce optimal results by adapting to the file at-
  504. tributes sent by the other Kermit along with the files, such as TYPE and LRECL.
  505. Such attributes, when sent by the other Kermit, temporarily override  the  cur-
  506. rent  settings  in  Kermit-370  during  the  reception  of the associated file.
  507. Potentially even more  importantly,  Kermit-370  automatically  recognizes  the
  508. character  set  used  for  the  file transfer and chooses, if necessary, a com-
  509. patible character set for file storage.  Table 1-1  shows  the  currently  sup-
  510. ported  list  of  character  sets.    As with any automatic operation, Kermit's
  511. honoring of the transmitted attributes may need to be suppressed in part or al-
  512. together, and the SET ATTRIBUTE subcommand provides this capability.
  513.  
  514. Another  attribute  that  Kermit-370 supports is file disposition, which allows
  515. files to be received and immediately retransmitted as electronic mail, sent  to
  516. a  printer,  or  submitted  as  a  batch  job.   These three options are highly
  517. site-specific and are implemented as a set of three host commands with  similar
  518. calling  sequences.  In each case, the command is invoked in two different ways
  519. in the process of processing the file.  It is called without  any  filespec  or
  520. other  options  as  soon  as  the  corresponding  attribute  is  recognized  by
  521. Kermit-370.  If the command is not implemented or for  some  reason  returns  a
  522. non-zero  completion code (such a code should be negative, if at all possible),
  523. Kermit-370 rejects the file using  the  normal  attribute  exchange  mechanism.
  524. Otherwise,  the  file is received as usual, and the command is invoked again at
  525. the end-of-file.  The second time,  the  command  is  given  the  name  of  the
  526. received  file  and  the  options received from the sending Kermit (such as the
  527. list of recipients for electronic mail).  The command is then  responsible  for
  528. disposing  of  the file (and deleting it, if desired).  If, for any reason, the
  529. file cannot be sent as required, the command should return a  negative  comple-
  530. tion  code  (or  non-zero, at any rate), and Kermit-370 will send back an error
  531. message to the sending Kermit.  The command itself should refrain from  issuing
  532. any  messages  of  its own or permitting commands that it invokes to issue mes-
  533. sages.  See the beginning of the chapter  on  the  system-specific  variant  of
  534. Kermit-370  for  the exact command syntax.  Some sample implementations of such
  535. commands  may  be  available  in  the  Kermit  distribution  --  refer  to  the
  536. system-specific installation guide for a list of samples.
  537.  
  538.  
  539. 1.4. Kermit-370 Subcommands
  540.  
  541. The  following is a summary of Kermit subcommands.  The starred subcommands can
  542. be issued as remote Kermit commands to Kermit-370 when it is  in  server  mode.
  543. System-specific subcommands are omitted from this list.
  544.           BYE      logs out other Kermit server.
  545.           CWD*     establishes a new working directory.
  546.     DIRECTORY      displays all or part of the disk directory.
  547.          ECHO      a line back to the user.
  548.          EXIT      from Kermit-370.
  549.        FINISH      other Kermit server.
  550.           GET      file(s) from a Kermit server.
  551.          GIVE*     creates a TAKE file snapshot of a table.
  552.          HELP      about Kermit-370.
  553.          HOST*     executes a system command.
  554.        KERMIT*     executes a Kermit subcommand.
  555.          QUIT      from Kermit-370.
  556.       RECEIVE      file(s) from other Kermit.
  557.          SEND      file(s) to other Kermit.
  558.        SERVER      mode of remote operation.
  559.           SET*     various parameters.
  560.          SHOW*     various parameters.
  561.         SPACE*     displays disk storage allocation.
  562.        STATUS*     inquiry.
  563.          STOP      easy escape from protocol mode.
  564.          TAKE*     subcommands from file.
  565.         TDUMP*     dumps the contents of a table.
  566.          TYPE*     a file.
  567.       VERSION*     of Kermit-370.
  568.         XECHO      echoes a line (transparently).
  569.         XTYPE      displays a file (transparently).
  570.  
  571. Although Kermit-370 is generally a remote Kermit, it has the capability of com-
  572. municating with another  Kermit  in  server  mode.    In  that  situation,  the
  573. subcommand prefixes REMOTE and LOCAL refer to the Kermit server and Kermit-370,
  574. respectively, even when Kermit-370 is, strictly speaking,  the  remote  Kermit.
  575. To  help  avoid  confusion,  this  chapter will often use the term "foreign" to
  576. apply to the Kermit at the other end from Kermit-370.  All  the  above  subcom-
  577. mands may be preceded by the LOCAL prefix, but only certain ones are valid with
  578. REMOTE, including some not shown here.  See the description of the SERVER  sub-
  579. command  for details.  Any text replies Kermit-370 gets from the foreign Kermit
  580. server  are  added  to  a  disk   file   (whose   filespec   is,   of   course,
  581. system-dependent).    Such a transaction can be carried out, for example, under
  582. control of a TAKE file if Kermit-370 is not operating locally.   If  the  local
  583. Kermit  has  a "magic" character sequence that switches it from terminal emula-
  584. tion to server mode, then an  entire  session  could  be  controlled  from  the
  585. mainframe,  possibly  in  response  to a single command issued by a naive user.
  586. For example,
  587.  
  588.     .grab
  589.  
  590.          Kermit-370 is invoked and executes the following TAKE file
  591.  
  592.     ECHO Serve Me!        the local Kermit switches to server mode
  593.     GET file.a            the server uploads file.a
  594.     FINISH                the server switches back to terminal mode
  595.  
  596. The remainder of this section describes subcommands with special meaning or use
  597. in  Kermit-370, except the highly system-dependent ones.  For the latter, refer
  598. to the appropriate chapter.  Subcommands are listed in alphabetical order.
  599.  
  600.  
  601.                         THE ECHO AND XECHO SUBCOMMANDS
  602.  
  603. Syntax: [X]ECHO line
  604.  
  605. These subcommands type the line back at the user.  The line may contain control
  606. characters  or  any desired text, including upper or lower case.  These subcom-
  607. mands may be used, for example, to test the ASCII/EBCDIC translate tables or to
  608. issue coded commands to the user's terminal.  XECHO differs from ECHO primarily
  609. in that it sends the text as a raw transmission according to the  current  CON-
  610. TROLLER setting.  Thus, XECHO will, if necessary, break the text into pieces no
  611. larger than the current SEND PACKET-SIZE and will use transparent mode if  CON-
  612. TROLLER  is  SERIES1,  GRAPHICS  or  AEA.    It  also  offers  its own brand of
  613. control-character quoting, using the "^" character to indicate  that  only  the
  614. five  low-order  bits of the ASCII codes are to be used.  Thus, "^a", "^A", and
  615. "^!" are all translated to SOH (CTRL-A), while  "^["  becomes  ESC.    However,
  616. there  must  be one exception for "^" itself: "^>" and "^~" are both translated
  617. to RS (CTRL-^), but "^^" becomes just "^".  XECHO also decodes 8th-bit quoting,
  618. just as in Kermit protocol, and this feature can be disabled by setting 8th-bit
  619. quoting off.  For example, if the 8th-bit quote character is "&", entering  the
  620. subcommand  "XECHO &A" will transmit a code x'C1', but the same subcommand with
  621. quoting off will transmit two bytes: x'2641'.
  622.  
  623.  
  624.                               THE GET SUBCOMMAND
  625.  
  626. Syntax: GET [foreign-filespec [filespec]]
  627.  
  628. The GET subcommand tells Kermit to request a file or file group from the  other
  629. system,  which  must  have a Kermit running in server mode.  Provided the other
  630. Kermit complies, the effect is the same as if SEND  foreign-filespec  had  been
  631. issued  directly  to the other Kermit and RECEIVE [filespec] to Kermit-370.  If
  632. this subcommand is issued without any arguments,  Kermit-370  will  prompt  the
  633. user  for  both  foreign  and  native filespecs (and will insist on getting the
  634. former, but will do without the latter).  See the respective SEND  and  RECEIVE
  635. subcommands for a description of the each filespec.
  636.  
  637.  
  638.                               THE GIVE SUBCOMMAND
  639.  
  640. Syntax: GIVE table-name filespec
  641.  
  642. This compares the named translation or selection table with its current default
  643. values and saves the differences in the form of a TAKE file consisting  of  SET
  644. subcommands that would convert the default into the current arrangement.  ATOE,
  645. ETOA, TATOE, and TETOA are the available translation tables,  and  CONTROL-CHAR
  646. is  the selection table.  The details of the filespec are system-dependent, but
  647. those details will, in general, be the same as for the TAKE subcommand  (q.v.).
  648. In  the  case of tables ATOE and ETOA, the current defaults are the values from
  649. the most recent character-set definition, if any, but the  defaults  for  TATOE
  650. and  TETOA always remain at the initial values.  See the SET FILE CHARACTER-SET
  651. and SET TRANSFER CHARACTER-SET subcommands for more details.
  652.  
  653.  
  654.                              THE HINTS SUBCOMMAND
  655.  
  656. Syntax: HINTS
  657.  
  658. This subcommand produces a screenful of suggestions for Kermit  operation,  in-
  659. cluding warnings about any current settings that may be undesirable.
  660.                               THE HOST SUBCOMMAND
  661.  
  662. Syntax: HOST text of command
  663.  
  664. This  issues  a  command  to the host operating system from Kermit-370.  When a
  665. command returns a  non-zero  completion  code,  the  code  will  be  displayed.
  666. Generally,  the  name of the system (e.g., CMS) is treated as a synonym for the
  667. HOST subcommand.
  668.  
  669. When Kermit-370 is in (non-local) server mode, you must avoid  sending  it  any
  670. HOST  commands  that  trigger full-screen terminal I/O, since the server-client
  671. interface  does  not  provide  any  full-screen  terminal  emulation,  nor   is
  672. Kermit-370 usually able to intercept such I/O in any case.
  673.  
  674.  
  675.                              THE KERMIT SUBCOMMAND
  676.  
  677. Syntax: KERMIT text of subcommand
  678.  
  679. This  is  provided  for  redundancy  as the counterpart of the HOST subcommand.
  680. Kermit-370 executes the specified text as a Kermit subcommand just  as  if  the
  681. LOCAL prefix had been entered.  Note, however, that the specified text must not
  682. begin with a second KERMIT prefix.
  683.  
  684.  
  685.                             THE RECEIVE SUBCOMMAND
  686.  
  687. Syntax: RECEIVE [filespec]
  688.  
  689. The RECEIVE subcommand tells Kermit-370 to accept a file or file  group.    The
  690. user  must  issue  the corresponding SEND subcommand to the other Kermit.  When
  691. files are received, their names are recorded in a transaction log in memory and
  692. may be viewed later via the TDUMP NAMES subcommand.  The log contains the names
  693. along with the file sizes and any relevant error messages.  Another form of log
  694. may  be provided through an accounting exit routine, which is called at the end
  695. of every RECEIVE session.  Such an accounting log may contain elapsed time  and
  696. numbers of bytes sent, received, and transferred to/from disk.  If an error oc-
  697. curs during the file transfer, as much of the file as was received is saved  on
  698. disk.    If,  however,  the  sending  of a file is cancelled by the user of the
  699. foreign system, Kermit-370 will discard whatever had arrived, unless FILE  COL-
  700. LISION is APPEND or INCOMPLETE is KEEP.
  701.  
  702. Kermit-370  has a context-dependent maximum record length, and received records
  703. longer than that will be folded or truncated to the proper  length;  when  this
  704. happens,  Kermit  may  or  may  not  stop,  depending  on the FILE subparameter
  705. LONGLINE.  If truncation does occur, Kermit will later note the fact as an  er-
  706. ror (unless something more serious happens in the meantime).  In addition, when
  707. a fixed record length is specified, received records are padded to the  correct
  708. length.   The padding character is a blank for text files and a null for binary
  709. files.  Received binary (but not V-binary or D-binary)  files  are  treated  as
  710. byte streams and broken up into records all of the logical record length, i.e.,
  711. folded.  For more details on the RECEIVE subcommand syntax and  operation,  see
  712. the  chapter  on  the  desired system-specific variant of Kermit-370 under both
  713. RECEIVE and SET FILE.  See also (in this chapter) the SET FILE LONGLINE subcom-
  714. mand for details on record truncation and folding.
  715.  
  716.  
  717.                               THE SEND SUBCOMMAND
  718.  
  719. Syntax: SEND [filespec[<options>] [foreign-filespec]][, ...]
  720.  
  721. The  SEND subcommand tells Kermit-370 to send a file or file group to the other
  722. (foreign) Kermit.  If no such file exists, Kermit-370 simply displays an  error
  723. message  and issues another prompt.  Like RECEIVE, SEND keeps a transaction log
  724. of all files transferred in a group and calls the accounting  exit  routine  at
  725. the  end  of  the session.  If this subcommand is issued without any arguments,
  726. Kermit-370 will prompt the user for both native and foreign filespecs (and will
  727. insist  on getting the former, but will do without the latter).  Either with or
  728. without prompting, SEND allows specifying a list of up to  13  files  (or  file
  729. groups)  separated  by  commas.    (By  ending  the  command line or subsequent
  730. response with a comma, the user ensures further prompting.)   In  this  syntax,
  731. the  options  enclosed  in angle brackets may be regarded as part of the native
  732. filespec.  There must be no intervening blanks.  At present, the only supported
  733. option  is a range of line numbers within the file to be sent.  The range takes
  734. the form [n][-[m]], where n is the number of the first line to  send  (counting
  735. from  1),  and m is the last.  Omitting either number implies the corresponding
  736. limit is the physical beginning or end of the file.  This  same  option  syntax
  737. may  be  used  in some commands issued to the foreign Kermit, namely, those in-
  738. volving filespecs in 370 form.  In particular, GET and REMOTE TYPE can use this
  739. syntax.    Note  that  a  trailing  ">"  is used by some other Kermits, such as
  740. MS-Kermit, to indicate redirection of the output from REMOTE commands to  disk.
  741. In order to transmit the ">" and also prevent the redirection to disk, it would
  742. be necessary to add an explicit redirection to the terminal, as in
  743.  
  744.     REM TYPE filespec<n-m> > CON
  745.  
  746. Although file transfers cannot be cancelled from the 370  side,  Kermit-370  is
  747. capable of responding to "cancel file" or "cancel batch" signals from the local
  748. Kermit; these are typically entered by typing CTRL-X or CTRL-Z, respectively.
  749.  
  750. When Kermit-370 sends files using long packets (longer than 94), the throughput
  751. is  especially  sensitive to the level of noise on the line because retries are
  752. so time-consuming.  Therefore, Kermit-370  imposes  an  extra,  heuristic  size
  753. limit  on  packets  when  retries  have been found necessary.  When that is the
  754. case, after every 15 packets, Kermit  computes  the  packet  size  for  maximum
  755. throughput   assuming   that  the  transmission  errors  were  due  to  sparse,
  756. Poisson-distributed noise bursts.  The result of this calculation is then  used
  757. as  another  limit on the size of outgoing packets besides the one specified by
  758. the other Kermit.  If no retries are required, then Kermit-370 assumes the line
  759. to  be  noiseless  and sends packets of the maximum length the other Kermit al-
  760. lows.  The algorithm is explained in Kermit News V. 3 #1.  For more details  on
  761. the  SEND  subcommand  syntax  and  operation,  see  the chapter on the desired
  762. system-specific variant of Kermit-370.
  763.  
  764.  
  765.                              THE SERVER SUBCOMMAND
  766.  
  767. Kermit-370 is capable of acting as a server.  In server  mode,  Kermit-370  can
  768. send and receive files, execute host commands, execute a restricted set of Ker-
  769. mit subcommands, and perform a variety of generic Kermit functions.   The  fol-
  770. lowing list shows the typical local Kermit commands along with the server func-
  771. tions they elicit.  When Kermit-370 is talking to  another  Kermit  running  in
  772. server mode, these same subcommands may be used in the other direction.
  773. BYE                 log out the Kermit server.
  774. FINISH              server mode.
  775. GET                 a file or files from the server.
  776. REMOTE
  777.   COPY              a file or files.
  778.   CWD               set new working directory.
  779.   DELETE            a file or files.
  780.   DIRECTORY         display file attributes.
  781.   HELP              display a command summary, such as this.
  782.   HOST              execute a system command.
  783.   KERMIT            execute a Kermit-370 subcommand.
  784.   PRINT             send a file to be printed by the server.
  785.   RENAME            a file or files.
  786.   SPACE             display disk space.
  787.   TYPE              a file.
  788. SEND                a file or files to the server.
  789.  
  790. If  your  local Kermit does not support the REMOTE KERMIT command, you may need
  791. to issue SET subcommands to select various options  before  typing  the  SERVER
  792. subcommand.    Once  in server mode, Kermit-370 will await all further instruc-
  793. tions from the client Kermit on the other end of the connection until a  FINISH
  794. or BYE command is given.
  795.  
  796. Command  execution  in  server  mode  is different in some respects from normal
  797. operation.  First of all, some Kermit subcommands are not allowed (see the list
  798. at  the  beginning of this section).  Moreover, command errors always terminate
  799. any active TAKE file.  Also, all commands will be run in the  special  environ-
  800. ment that Kermit sets up during protocol transfers.  Among other things, Kermit
  801. intercepts all terminal I/O (if possible)  in  this  environment  in  order  to
  802. transmit the data to the local Kermit as text packets.
  803.  
  804. Note  that  some operations can be requested by several different commands.  If
  805. for example, the IBM 370 system has a command "PRT" for displaying  a  file,  a
  806. user  interacting  with a Kermit-370 server can choose to display a file by is-
  807. suing any of the commands: REMOTE TYPE, REMOTE HOST PRT,  REMOTE  KERMIT  TYPE,
  808. REMOTE  KERMIT HOST PRT, or (if SYSCMD has been set ON) REMOTE KERMIT PRT.  The
  809. first form simply transfers the requested file as text, but the  others  invoke
  810. the  "PRT"  command  with any specified options, intercept the terminal output,
  811. and return the results to the local Kermit.  The first  form  is  also  distin-
  812. guished  by the fact that the line range may be specified in the same manner as
  813. in the SEND subcommand.  The syntax of the others is system-dependent.
  814.  
  815.  
  816.                               THE SET SUBCOMMAND
  817.  
  818. Syntax: SET parameter [value]
  819.  
  820. The SET subcommand establishes or modifies various parameters controlling  file
  821. transfers.    The  values  can,  in turn, be examined with the SHOW subcommand.
  822. Some parameters have two levels.  In particular, there are two  matching  lists
  823. of  SEND  and  RECEIVE  sub-parameters corresponding to the values exchanged by
  824. Kermits in the Send-Init/ACK sequence.  For each of  these  SEND/RECEIVE  pairs
  825. one  element is encoded in outgoing parameter packets, and the other is decoded
  826. from incoming ones.  Setting the latter by hand may be needed to establish con-
  827. tact  and also has the effect of redefining the default value for decoding from
  828. subsequent parameter packets.  Generally,  the  distinction  between  SEND  and
  829. RECEIVE  parameters  is  unambiguous,  the only exception being TIMEOUT (q.v.).
  830. The following SET subcommands are available in Kermit-370:
  831. ATOE                Modify the Kermit-370 ASCII-to-EBCDIC table.
  832. ATTRIBUTE           Determine A-packet generation.
  833. BLOCK-CHECK         Level of error checking for file transfer.
  834. CONTROLLER          Indicate type of terminal connection.
  835. CONTROL-CHAR        Set prefixing state.
  836. DEBUG               Log packet traffic during file transfer.
  837. DELAY               Length of pause before a SEND subcommand.
  838. EOF                 Text file truncation at CTRL-Z.
  839. ETOA                Modify the Kermit-370 EBCDIC-to-ASCII table.
  840. FILE                Attributes for incoming or outgoing files...
  841.   CHARACTER-SET     ... for 370 storage.
  842.   COLLISION         ... treatment for duplicate names.
  843.   LONGLINE          ... treatment of too-long records.
  844.   OVERWRITE         ... treatment of attributes.
  845.   TYPE              ... text or binary.
  846.   other             ... system-specific attributes.
  847. FOREIGN             Strings added to outgoing filespec...
  848.   PREFIX
  849.   SUFFIX
  850. INCOMPLETE          Determine the action on an aborted file transfer.
  851. LINE                Specify alternate communication line.
  852. MARGIN              for sending files...
  853.   LEFT
  854.   RIGHT
  855. PROMPT              For Kermit-370 subcommands.
  856. RETRY               Maximum retry count...
  857.   INIT              ... for initial packet exchange.
  858.   PACKET            ... per packet for ongoing transfer.
  859. SERVER-TIMEOUT      Spacing between server NAK's.
  860. SPEED               Line speed for packet-size calculations.
  861. SYSCMD              Try apparently invalid Kermit subcommands on host system.
  862. TABS-EXPAND         Determine tab-to-space conversion on reception.
  863. TAKE
  864.   ECHO              Echo subcommands read from TAKE files.
  865.   ERROR-ACTION      Exit from TAKE file on command error.
  866. TEST                Facilitate testing of Kermit.
  867. TATOE               Modify the Kermit-370 ASCII-to-EBCDIC table.
  868. TETOA               Modify the Kermit-370 EBCDIC-to-ASCII table.
  869. TRANSFER            Options for transmission...
  870.   CHARACTER-SET     ... of text files.
  871.   LOCKING-SHIFT     ... protocol extension.
  872. TTABLE              Determine which tables undo the terminal translation.
  873. 8-BIT-QUOTE         Determine state of 8th-bit prefixing.
  874. SEND or RECEIVE
  875.   END-OF-LINE       Packet terminator.
  876.   PACKET-SIZE       Maximum packet size.
  877.   PAD-CHAR          Character to insert before each packet.
  878.   PADDING           Number of pad characters to insert.
  879.   PARITY            Indicate if 7-bit or 8-bit data.
  880.   QUOTE             Use to quote control characters in packets.
  881.   START-OF-PACKET   Packet beginning marker.
  882.   TIMEOUT           Time limit for response.
  883.  
  884.  
  885. SET ATOE etc.
  886.  
  887. Syntax: SET table [num1 num2]
  888.  
  889. This modifies one of the ASCII/EBCDIC translation  tables  used  by  Kermit-370
  890. (for  example,  to  conform  to  your system).  The valid table names are ATOE,
  891. ETOA, TATOE, and TETOA.  The arguments are, respectively, the offset within the
  892. named  table  and the new value for that offset.  If the arguments are omitted,
  893. the table is restored to its initial arrangement.  Both num1 and num2 should be
  894. in the range 0-255 (decimal).  For example, in ATOE or TATOE, the offset is the
  895. ASCII character code, and the new value is the new EBCDIC  result  code.    In-
  896. itially,  ATOE  and  TATOE each contain two identical copies of the 7-bit ASCII
  897. character table.  Helpful hint: if you have files that  make  use  of  extended
  898. (8-bit)  ASCII  codes and wish to upload them via Kermit-370, be sure to define
  899. unique EBCDIC equivalents of all the needed 8-bit ASCII  codes  or  else  treat
  900. such  files  as binary data.  Any time you use the SET ATOE or SET ETOA subcom-
  901. mands, that has a side effect equivalent to SET ATTRIBUTE ENCODING OFF  (q.v.).
  902. If the extended ASCII character set is one of those supported for file transfer
  903. in Kermit-370, you need only issue a SET TRANSFER CHARACTER-SET (q.v.).
  904.  
  905. Note: the meaning of the tables depends on the TTABLE setting -- if  TTABLE  is
  906. OFF, the TATOE and TETOA tables are not used.
  907.  
  908.  
  909. SET ATTRIBUTE
  910.  
  911. Syntax: SET ATTRIBUTE [attribute] ON or OFF
  912.  
  913. The  individual  attributes  are  LENGTH,  TYPE,  DATE, CREATOR, ACCOUNT, AREA,
  914. PASSWORD, BLOCKSIZE, ACCESS, ENCODING, DISPOSITION,  PROTECT,  ORIGIN,  FORMAT,
  915. SYS-INFO,  and  BYTE-LENGTH.  Kermit-370 distinguishes between the two forms of
  916. this subcommand by counting "words".  In order to see the list of supported at-
  917. tributes, you must enter "SET ATTR ? ?"; if you enter just "SET ATTR ?", Kermit
  918. will list just the alternatives ON and OFF.
  919.  
  920. ON      The specified attribute is to be processed, or  attribute  packets  are
  921.         generated  for  all outgoing files, provided the other Kermit indicates
  922.         the ability to accept them.  (Default).
  923.  
  924. OFF     The specified attribute is to be ignored  and  not  generated,  or  at-
  925.         tribute packets are never generated.
  926.  
  927.  
  928. SET BLOCK-CHECK
  929.  
  930. Syntax: SET BLOCK-CHECK type
  931.  
  932. This determines the type of block check used during file transfer, provided the
  933. other Kermit agrees.  Valid options for type are:  1-byte (for a  one-character
  934. checksum), 2-byte (for a two-character checksum), 3-byte (for a three-character
  935. CRC), and Blank-free-2 (for a shifted two-character checksum that avoids  using
  936. blanks.    This  is  one  of  only  two Send-Init parameters that cannot be SET
  937. separately for SEND and RECEIVE.
  938.  
  939.  
  940. SET CONTROLLER
  941.  
  942. Syntax: SET CONTROLLER type
  943.  
  944. The type may be TTY, SERIES1, GRAPHICS,  AEA,  FULLSCREEN,  VTAMTTY,  or  NONE.
  945. Kermit-370  automatically  determines  whether you are connected via a Series/1
  946. (or similar) emulation controller or a TTY line.  In some  circumstances,  such
  947. as when the connection is through a non-graphics-capable 3174 port, Kermit will
  948. set CONTROLLER to NONE, which has the effect of disabling file transfers.  This
  949. subcommand is provided, though, to allow the automatic choice to be superseded,
  950. and because Kermit may not be able to  distinguish  between  Series/1-type  and
  951. other  3270-emulation  controllers.   In particular, there is no way to distin-
  952. guish between FULLSCREEN and GRAPHICS from within Kermit.  When  CONTROLLER  is
  953. set  to SERIES1, GRAPHICS, or AEA, Kermit disables the 3270 protocol conversion
  954. function by putting the terminal controller into "transparent mode", which  al-
  955. lows Kermit packets to pass through intact.  Note: an incorrect CONTROLLER set-
  956. ting may lock up or wipe out your session when you try to transfer files.
  957.  
  958. Kermit operation is possible through an IBM 3708  front  end,  but  only  in  a
  959. rather  specific configuration.  See the installation guide for your variant of
  960. Kermit-370 for the details of that and other hardware-related restrictions  and
  961. configurations.
  962.  
  963.  
  964. SET CONTROL-CHAR
  965.  
  966. Syntax: SET CONTROL-CHAR mode [number]
  967.  
  968. The mode may be PREFIXED (normal Kermit protocol for control characters) or UN-
  969. PREFIXED.  In the latter case, the specified  control  character  (given  as  a
  970. decimal  number  in  the range 0-31 or 128-159) is transmitted "as is".  If the
  971. number is omitted, then all control characters are set accordingly.  Kermit-370
  972. automatically  overrides  the  user's  settings for certain characters used for
  973. Kermit protocol: the start-of-packet,  the  end-of-packet,  the  handshake  (if
  974. set),  and  XOFF (not really used, but too dangerous to send).  Sending control
  975. characters without prefixes can speed up transfers of binary files.
  976.  
  977. The status of prefixing is initially "PREFIXED" for all control characters.  It
  978. can  be  displayed  by  the TDUMP CONTROL subcommand, or saved in the form of a
  979. TAKE file by the GIVE CONTROL subcommand (q.v.).
  980.  
  981.  
  982. SET DEBUG
  983.  
  984. Syntax: SET DEBUG OFF or ON [RAW] [I/O] [SAVE] [LONG] [TIME]
  985.  
  986. Note: any combination, in any order, of RAW, I/O, SAVE, and TIME may follow  or
  987. replace ON.  Each of the three implies ON.
  988.  
  989. ON      Keep  a journal of all packets sent and received in a log file on disk.
  990.         If the file already exists, it is erased and overwritten.  The filespec
  991.         of  the log is, of course, system-dependent.  All packets are logged in
  992.         EBCDIC  for  legibility,  even  when  CONTROLLER  is  set  to  SERIES1,
  993.         GRAPHICS, or AEA.
  994.  
  995. RAW     The same as ON, but packets are logged in the form that is passed to or
  996.         from the operating system, i.e., EBCDIC for TTY or  VTAMTTY  terminals,
  997.         and  ASCII  for  SERIES1,  GRAPHICS, and AEA terminals.  This option is
  998.         generally not recommended; I/O is preferable.
  999.  
  1000. I/O     The same as ON, but the log includes additional transmission status in-
  1001.         formation, such as the AID returned by a full-screen device.  See below
  1002.         for a summary of the log formats.
  1003.  
  1004. SAVE    The same as ON, but the log file is closed after each entry  is  added,
  1005.         so  that, if the session is abnormally terminated, the log file will be
  1006.         complete and readable.
  1007.  
  1008. LONG    The same as I/O, but the additional information is not truncated to  36
  1009.         bytes.
  1010.  
  1011. TIME    Used  only  with I/O or LONG.  The lines of hexadecimal dump are tagged
  1012.         with the time of day from the  CPU  clock,  truncated  to  the  nearest
  1013.         second.
  1014.  
  1015. OFF     Stop logging packets and close the the log file.  (Default.)
  1016.  
  1017. Often,  problems  with  Kermit  file transfers or server-mode operations can be
  1018. diagnosed by setting DEBUG on in one or both Kermits, regardless of  where  the
  1019. problems  actually  lie.  For Kermit-370, the maximum amount of information can
  1020. generally be obtained by setting DEBUG to I/O or LONG, but the  format  of  the
  1021. log  depends  somewhat  on which variant of Kermit-370 is involved.  Before ex-
  1022. amining the log, you should set DEBUG OFF either explicitly or by exiting  from
  1023. Kermit-370.
  1024.  
  1025. There  is  an  optional feature for logging dumps of storage blocks at selected
  1026. points in the execution.  By default, this feature  is  disabled  (at  assembly
  1027. time) by having the variable symbol &KTRACE set to NO and also by virtue of the
  1028. fact that no calls to the dump routine are present in  the  distribution  code.
  1029. Further, the dumps are suppressed unless both DEBUG and TEST (q.v.) are set on.
  1030. To select when and what blocks to dump, it is  necessary  to  insert  calls  to
  1031. KHDMP  at  appropriate  points in the source before assembling.  Each such call
  1032. generates a dump each time it is executed, provided that  DEBUG  and  TEST  are
  1033. set,  and  the contents of all registers are preserved.  The call specifies the
  1034. starting address, the length, and a short title for  the  block.    Only  eight
  1035. characters of the title will be used.  Some examples:
  1036.  
  1037.             KHDMP ATOE+128,128,'ATOEhigh'
  1038.                           Dump the 2nd half of the ATOE table.
  1039.  
  1040.             KHDMP KHDSAV,20,'R14 - R2'
  1041.                           Dump registers 14-2.
  1042.  
  1043.             KHDMP 32(,13),40,'**R3-R12'
  1044.                           Dump registers 3-12.
  1045.  
  1046.             KHDMP (3),(0),'**QBLOCK'
  1047.                           Dump  block  addressed by R3 with length specified in
  1048.                           R0.
  1049.  
  1050. There is another debugging facility that is  enabled  by  the  variable  symbol
  1051. &KTRACE  along  with  the  dump option, namely, an execution trace.  There is a
  1052. circular buffer of trace elements in Kermit's working storage, and a  new  ele-
  1053. ment  is  written each time a Kermit subroutine is called or returns.  The ele-
  1054. ments contain the subroutine name plus (on entry) a  sequence  number  and  the
  1055. contents  of  registers 0 and 1 or (on exit) the character ">" and the contents
  1056. of registers 15 and 1.  There is also a mechanism for tracing extra  events  by
  1057. inserting KTRACE calls into the source.  For example,
  1058.  
  1059.             KTRACE 0(5),REGS=5
  1060.                           Trace eight bytes pointed to by R5 and R5 itself.
  1061.  
  1062.             KTRACE FOOBAR Trace eight bytes at label FOOBAR.
  1063.  
  1064.             KTRACE 'Found it',REGS=(1,7)
  1065.                           Trace "Found it", R1, and R7.
  1066.  
  1067. The  trace  table is simply updated in storage, eating its own tail.  It can be
  1068. found in a memory dump by locating the "eye-catcher" that says "KTRACE:", which
  1069. precedes the start, current, and end pointers for the table.  The table is also
  1070. accessible interactively via the TDUMP subcommand (q.v.).
  1071.  
  1072. Each line in the debug log begins with a one-letter tag and a  colon  and  con-
  1073. tains information according to the tag.  The following tags are defined.
  1074.  
  1075. S:  The text of a packet sent.  Normally, it will be encoded in EBCDIC for con-
  1076.     venience, but if DEBUG is set to RAW, the packet  will  appear  exactly  as
  1077.     passed  to or from the system, i.e., in EBCDIC for TTY or VTAMTTY lines and
  1078.     in ASCII for full-screen lines.
  1079.  
  1080. R:  The text of a packet received.  The same encoding applies.
  1081.  
  1082. A:  The AID and buffer address returned by a full-screen device  along  with  a
  1083.     read  operation (three characters in all).  The values should all be print-
  1084.     able EBCDIC.  This obsolete tag was used by TSO and MUSIC Kermits  and  ap-
  1085.     peared only when DEBUG was set to I/O.
  1086.  
  1087. *:  Data dumped by the optional KHDMP routine.
  1088.  
  1089. The  following  tags  appear only when DEBUG is set to I/O or LONG.  All values
  1090. are in hexadecimal.  The meanings differ slightly according  to  the  operating
  1091. system.   For CMS, the I/O parameter list is a channel command; for TSO or ROS-
  1092. COE, the SVC 93  (TPUT/TGET)  parameters;  for  CICS,  an  intermediate  string
  1093. similar  to channel commands.  Similarly, the status data consist of the stored
  1094. CSW plus an attention interrupt indicator for CMS, but the return code from the
  1095. I/O operation for TSO, ROSCOE, CICS, and MUSIC.
  1096.  
  1097. a:  Channel and device status after an unexpected attention interrupt.
  1098.  
  1099. b:  I/O parameter list for recovering from a CP break-in on screen.
  1100.  
  1101. c:  I/O parameter list for resuming normal screen operation.
  1102.  
  1103. d:  Data transferred on the previously indicated I/O operation.
  1104.  
  1105. e:  Status data after an I/O command has completed with an error.
  1106.  
  1107. g:  I/O parameter list for reading from the screen buffer.
  1108.  
  1109. i:  Status data after an I/O command has completed normally.
  1110.  
  1111. m:  I/O parameter list for displaying text on the screen.
  1112.  
  1113. o:  I/O parameter list for initializing the screen for transfers.
  1114.  
  1115. r:  I/O parameter list for reading from the terminal.
  1116.  
  1117. w:  I/O parameter list for a transparent write.
  1118.  
  1119. ?:  I/O parameter list for some other operation, such as clearing the screen.
  1120.  
  1121.  
  1122. SET DELAY
  1123.  
  1124. Syntax: SET DELAY number
  1125.  
  1126. Normally, Kermit-370 waits 10 seconds after the SEND subcommand before starting
  1127. the transfer, but this delay may be set to any non-negative value.   Two  DELAY
  1128. values have special meaning.  When DELAY is 1, the usual two-line greeting dis-
  1129. played during protocol mode is abbreviated to a short message (the default Ker-
  1130. mit prompt with three dots...), and when DELAY is 0, the greeting is suppressed
  1131. entirely, along with the extra one-second pause for subcommands  like  RECEIVE,
  1132. SERVER, REMOTE, and the like.
  1133.  
  1134.  
  1135. SET EOF
  1136.  
  1137. Syntax: SET EOF ON or OFF
  1138.  
  1139. ON      Scan each incoming TEXT file for the first occurrence of CTRL-Z and ig-
  1140.         nore the remainder of the file (but continue decoding up to the  actual
  1141.         end of the file).  BINARY files are not affected.
  1142.  
  1143. OFF     Accept incoming files in their entirety.  (Default.)
  1144.  
  1145.  
  1146. SET FILE CHARACTER-SET
  1147.  
  1148. Syntax: SET FILE CHARACTER-SET name
  1149.  
  1150. Specifies  the  name  of  the character set used in files stored on disk.  This
  1151. setting may be superseded by an Attribute packet of an  incoming  file.    Cur-
  1152. rently,  the  available  names  are  CP037,  CP273, CP275, CP277, CP278, CP280,
  1153. CP281, CP282, CP284, CP285, CP290, CP297, CP420, CP424,  CP500,  CP838,  CP870,
  1154. CP871,  CP875,  CP880,  CP905,  CP1047, CZECH, DKOI, EBCDIC, H-EBCDIK-DASH, and
  1155. KANJI (or FUJITSU-KANJI, HITACHI-KANJI, or IBM-KANJI).    The  names  beginning
  1156. with  CP  refer  to  IBM  code  pages, while DKOI is the Cyrillic standard GOST
  1157. 19768-87 used in the USSR, CZECH is a character set sometimes used in  Czechos-
  1158. lovakia,  and  EBCDIC (the default) is the traditional de facto standard EBCDIC
  1159. character set.  A character set other than the default may be required by local
  1160. conventions  and,  if so, should be specified in the system or user INIT files.
  1161. See Table 1-1 for the allowed combinations of transfer and file character sets.
  1162. Explicitly  setting this option has a side effect equivalent to issuing SET AT-
  1163. TRIBUTE ENCODING ON (q.v.).
  1164.  
  1165. The name KANJI is actually just an alias for the  local  preferred  proprietary
  1166. Kanji  code  (Fujitsu, Hitachi, or IBM).  The various Kanji character sets have
  1167. two-byte codes (DBCS), but are used with one-byte code pages  (SBCS)  as  well.
  1168. It is normally necessary to issue two SET FILE CHARACTER-SET SUBCOMMANDS in or-
  1169. der to set up for a DBCS: first, selecting  a  compatible  SBCS,  and,  second,
  1170. selecting  the  DBCS  itself.    If  the  current SBCS is incompatible with the
  1171. selected DBCS, a default will be chosen.  This default, along with  the  choice
  1172. of the particular proprietary character set associated with the alias KANJI, is
  1173. chosen by the installer.
  1174.  
  1175.  
  1176. SET FILE COLLISION
  1177.  
  1178. Syntax: SET FILE COLLISION action
  1179.  
  1180. Specifies the action to take when an incoming file has the same name as an  ex-
  1181. isting  one.    Two of the options involve choosing an alternative, unique name
  1182. similar  to  the  one  in  conflict,  but   the   details   of   choosing   are
  1183. system-specific.   Typically, the method involves adding digits to the existing
  1184. name.
  1185.  
  1186. APPEND       The new file is appended to the old one.  This option has the  the
  1187.              same effect as the old subcommand SET APPEND ON.
  1188.  
  1189. BACKUP       The  existing  file  is  renamed,  and  the  new file is given the
  1190.              desired name as if no conflict had occurred.
  1191.  
  1192. DISCARD      The incoming file is rejected by returning a "cancel file" indica-
  1193.              tion on any Data packets.
  1194.  
  1195. OVERWRITE    The  existing file is overwritten with the incoming file.  This is
  1196.              the default for the CMS, TSO, ROSCOE, and MUSIC variants.   Chang-
  1197.              ing  this  default  is a good candidate for INIT files.  When COL-
  1198.              LISION is set to OVERWRITE, the attributes of  the  new  file  are
  1199.              determined by the current setting of FILE OVERWRITE (q.v.).
  1200.  
  1201. RENAME       The  incoming file is renamed so as not to destroy (overwrite) the
  1202.              pre-existing one, and the new name is returned to the sending Ker-
  1203.              mit for information purposes.  This has the same effect as the old
  1204.              subcommand SET WARNING ON.  This  is  the  default  for  the  CICS
  1205.              variant.
  1206.  
  1207.  
  1208. SET FILE LONGLINE
  1209.  
  1210. Syntax: SET FILE LONGLINE FOLD or TRUNCATE or HALT
  1211.  
  1212. This  specifies the action to take when a received line is longer than the cur-
  1213. rent maximum record length.  That length is determined  by  the  context  in  a
  1214. system-specific way.  Refer to the description of the RECEIVE subcommand in the
  1215. appropriate chapter for details.
  1216.  
  1217. FOLD        Specifies that long lines are to be split into two or more  records
  1218.             as  needed,  all but the last being of the maximum length.  No null
  1219.             records are created when the received line is an exact multiple  of
  1220.             the  record length.  BINARY files are always considered, by defini-
  1221.             tion, as a single line and, therefore, are always  folded,  regard-
  1222.             less  of  the  setting  of  this  parameter.  V-BINARY and D-BINARY
  1223.             files, on the other hand, are reconstructed by  folding  at  points
  1224.             determined  by  the context within the received file, and cannot be
  1225.             folded further to fit the current maximum length.  Any such records
  1226.             that are too long will be truncated.
  1227.  
  1228. TRUNCATE    Specifies  that  long  lines  are  to  be  truncated at the maximum
  1229.             length.  (Default.)  Kermit-370 takes note of the  number  of  such
  1230.             truncations  performed  on a file and reports it in the STATUS mes-
  1231.             sage and also treats the fact of truncation as an  error  when  the
  1232.             file  transfer  is  complete.  The file will have been transferred,
  1233.             but obviously not quite intact.  However, this option can be useful
  1234.             for  some  tasks,  such  as  stripping  sequence  numbers from card
  1235.             images.  The process is similar to that provided by the SET  MARGIN
  1236.             RIGHT subcommand for sending files.
  1237.  
  1238. HALT        Specifies that a file transfer is to halt immediately if a received
  1239.             line is too long.  Kermit-370 then issues an error packet and stops
  1240.             the transfer.
  1241.  
  1242.  
  1243. SET FILE OVERWRITE
  1244.  
  1245. Syntax: SET FILE OVERWRITE DEFAULT or PRESERVE
  1246.  
  1247. DEFAULT    Specifies  that  the  current file attribute settings are to be used
  1248.            for the new file.  The result is roughly the  same  as  if  the  old
  1249.            file,  if  any,  were  completely  erased  before  the  new  file is
  1250.            received.  (Default.)
  1251.  
  1252. PRESERVE   Specifies that the attributes of the file being overwritten  are  to
  1253.            be  retained  and  used for the new file.  The result is roughly the
  1254.            same as if the old files contents were deleted,  and  the  new  file
  1255.            were appended to the empty stub.
  1256. SET FILE TYPE
  1257.  
  1258. Syntax: SET FILE TYPE type
  1259.  
  1260. Specifies  the type of data comprising files to be sent or received.  This set-
  1261. ting may be temporarily superseded by the Attribute packets for  a  file  being
  1262. received.
  1263.  
  1264. TEXT       Specifies  ordinary text.  ASCII-to-EBCDIC or EBCDIC-to-ASCII trans-
  1265.            lation is performed on the data.  Trailing blanks are  removed,  and
  1266.            CRLF's  are  appended to outgoing records. CRLF's are used, in turn,
  1267.            to determine the end of incoming  records,  which  are  padded  with
  1268.            blanks  if  necessary  to  fill buffers.  (Default.)  Note: trailing
  1269.            blanks are removed from outgoing,  varying-length  records  only  if
  1270.            they  consist  of a single blank each, or if there is a right margin
  1271.            specified (q.v.).  Further  note:  a  given  file  is  intrinsically
  1272.            categorized  as fixed-length or varying-length (or undefined-length)
  1273.            by the file system and cannot be changed simply by setting the  FILE
  1274.            RECFM  parameter  in  Kermit.    Conversion  between  formats  is  a
  1275.            system-specific function; see the system  documentation  or  consult
  1276.            your local support staff for details on conversion techniques.
  1277.  
  1278. BINARY     Specifies  bit-stream  data.  No translation is performed, no CRLF's
  1279.            are added to outgoing records, and  blanks  are  neither  added  nor
  1280.            removed.    Incoming  bytes  are  added  successively to the current
  1281.            record buffer, which is  written  out  when  the  current  LRECL  is
  1282.            reached.  Padding, if necessary, is done with nulls.
  1283.  
  1284. V-BINARY   Specifies  varying-length-record binary data.  This type is like BI-
  1285.            NARY, except that a two-byte binary prefix is added to each outgoing
  1286.            record giving the number of data bytes, and incoming records are set
  1287.            off by (and stripped of) their prefixes on receipt.
  1288.  
  1289. D-BINARY   Is like V-BINARY except  that  the  length  prefixes  are  five-byte
  1290.            ASCII-encoded decimal (right-justified with leading zeroes).
  1291.  
  1292.  
  1293. SET FOREIGN
  1294.  
  1295. Syntax: SET FOREIGN PREFIX string
  1296.  
  1297. This  defines a prefix string to be added to the outgoing filespec generated by
  1298. the SEND subcommand.  For example, the string might be set to "B:"  to  specify
  1299. output to the B disk drive on the other Kermit's system.  The default is a null
  1300. string.  There is also a FOREIGN SUFFIX handled in the same manner.
  1301.  
  1302.  
  1303. SET HANDSHAKE
  1304.  
  1305. Syntax: SET HANDSHAKE number
  1306.  
  1307. This defines the character, if any, that Kermit-370 should send (or cause to be
  1308. sent)  immediately  before  reading each packet.  The character is given as the
  1309. decimal of an ASCII control character, or as zero if  no  handshake  is  to  be
  1310. sent.    The default is 17 (XON), and any value in the range 0-31 is valid, but
  1311. 13 (CR) should not be used because it is generally the end-of-packet character.
  1312. When  Kermit-370  is  running  through  a  full-duplex  connection  (such  as a
  1313. "SERIES1"), the traditional IBM handshaking is  not  necessary,  and  HANDSHAKE
  1314. should be set to 0 (as long as the other Kermit can be instructed not to expect
  1315. a handshake).  Note the distinction between SET HANDSHAKE in Kermit-370  (where
  1316. it  defines a character to be sent) and in many micro Kermits (where it defines
  1317. a character to be expected).
  1318.  
  1319.  
  1320. SET INCOMPLETE
  1321.  
  1322. Syntax: SET INCOMPLETE DISCARD or KEEP
  1323.  
  1324. DISCARD   Specifies that incomplete files (that is, files partially received in
  1325.           a  transfer cancelled by the other Kermit) are to be erased.  This is
  1326.           the default.  Note that when FILE  COLLISION  is  APPEND,  incomplete
  1327.           files are never erased, lest pre-existing data be lost.
  1328.  
  1329. KEEP      Specifies that incomplete files are to be kept.
  1330.  
  1331.  
  1332. SET LINE
  1333.  
  1334. Syntax: SET LINE [name]
  1335.  
  1336. This specifies an alternate communication line for file transfers.  If the name
  1337. is omitted, the default line (the user's terminal) is used.  The format of name
  1338. is, of course, system-dependent, and some variants of Kermit-370 do not support
  1339. any alternate lines.  No variant currently allows Kermit-370 to CONNECT over an
  1340. alternate line.
  1341.  
  1342.  
  1343. SET MARGIN
  1344.  
  1345. Syntax: SET MARGIN side column
  1346.  
  1347. When  Kermit-370  sends  a text file, each line may be truncated on the left or
  1348. right (or both) at fixed column numbers.  Only the text from the left margin to
  1349. the right margin (inclusive) will be sent, and any trailing blanks in the trun-
  1350. cated lines will be stripped.  A value of zero for either margin disables trun-
  1351. cation on that side.
  1352.  
  1353.  
  1354. SET PROMPT
  1355.  
  1356. Syntax: SET PROMPT [string]
  1357.  
  1358. This  defines  the  character string that Kermit-370 displays when asking for a
  1359. subcommand.  The prompt may be any string of up to 20 characters.  The  default
  1360. is  the  name  of  the  system-specific variant of Kermit-370 followed by a ">"
  1361. sign, e.g., Kermit-CMS>.  If the string is  omitted,  normal  system  prompting
  1362. will occur.
  1363.  
  1364.  
  1365. SET RETRY
  1366.  
  1367. Syntax: SET RETRY INITIAL or PACKETS number
  1368.  
  1369. Kermit-370  resends its last packet after receiving a NAK or bad packet, but it
  1370. eventually gives up after repeated failures on the same packet.  The  limit  on
  1371. retries  can  be  set  separately for the initial packet exchange (Send-Init or
  1372. server-mode command) and for ordinary packets.  The default for INITIAL  is  16
  1373. and for PACKETS, 5.  Either limit can be set to any positive value.
  1374.  
  1375.  
  1376. SET SERVER-TIMEOUT
  1377.  
  1378. Syntax: SET SERVER-TIMEOUT time
  1379.  
  1380. This defines the time in seconds that Kermit-370 in server mode should wait for
  1381. a command before sending a NAK packet.  The default is 120.  A value of 0 means
  1382. that  Kermit  should wait indefinitely, not only in the server loop, but in all
  1383. transfers, regardless of the timeout value specified by the other Kermit.  Some
  1384. variants  are  unable  to  time  out  in  any case.  Also, timeouts are not im-
  1385. plemented for any of the full-screen terminal controllers.
  1386.  
  1387.  
  1388. SET SPEED
  1389.  
  1390. Syntax: SET SPEED number
  1391.  
  1392. This determines the communication line speed assumed by Kermit-370 in calculat-
  1393. ing  the optimum packet size.  If the value is zero, such calculations are sup-
  1394. pressed.  This option is purely informative and has no effect  on  actual  line
  1395. speed.  (Default 1200.)
  1396.  
  1397.  
  1398. SET SYSCMD
  1399.  
  1400. Syntax: SET SYSCMD ON or OFF
  1401.  
  1402. ON      If the user enters a command string which is not a valid Kermit subcom-
  1403.         mand, Kermit-370 will pass the string along to the host operating  sys-
  1404.         tem  for  execution.   If the string is rejected by the system as well,
  1405.         Kermit will report it as an invalid Kermit subcommand.  Otherwise, Ker-
  1406.         mit  will  assume  the  string  was intended as a host command and will
  1407.         simply report the completion code if non-zero.
  1408.  
  1409. OFF     Invalid Kermit subcommands are simply rejected as such.    System  com-
  1410.         mands  may  be  executed, of course, but only by specifying the generic
  1411.         prefix "HOST" or the appropriate system-specific prefix, such as CMS or
  1412.         TSO.  (Default.)
  1413.  
  1414.  
  1415. SET TABS-EXPAND
  1416.  
  1417. Syntax: SET TABS-EXPAND ON [list] or OFF
  1418.  
  1419. ON      Tab  characters  in  incoming  TEXT  files  are replaced by one or more
  1420.         blanks to bring the record size up to the next higher multiple of eight
  1421.         for  each  tab.   If tab settings other than columns 1, 9, 17, etc. are
  1422.         desired, they may be specified  explicitly  in  a  list  following  the
  1423.         keyword  "ON".   Items in the list may be separated by spaces or commas
  1424.         and must be in strictly increasing order.
  1425.  
  1426. OFF     Incoming tabs are retained.  (Default.)
  1427.  
  1428.  
  1429. SET TAKE ECHO
  1430.  
  1431. Syntax: SET TAKE ECHO ON or OFF
  1432.  
  1433. ON      Subcommands are echoed to the terminal as they are executed from a TAKE
  1434.         file.
  1435.  
  1436. OFF     Subcommands from a TAKE file are executed "silently."  (Default.)
  1437.  
  1438.  
  1439. SET TAKE ERROR-ACTION
  1440.  
  1441. Syntax: SET TAKE ERROR-ACTION CONTINUE or HALT
  1442.  
  1443. CONTINUE   Execution  continues  in a TAKE file regardless of illegal commands,
  1444.            except in server mode.  (This is the default.)
  1445.  
  1446. HALT       A command error in a TAKE file causes immediate exit to Kermit  sub-
  1447.            command level.
  1448.  
  1449.  
  1450. SET TEST
  1451.  
  1452. Syntax: SET TEST ON or OFF
  1453.  
  1454. ON      Allow  setting  the START-OF-PACKET and other special characters to any
  1455.         value, and suppress type 1 checksum testing on received packets.
  1456.  
  1457. OFF     Normal operation.  (Default.)
  1458.  
  1459.  
  1460. SET TRANSFER CHARACTER-SET
  1461.  
  1462. Syntax: SET TRANSFER CHARACTER-SET name
  1463.  
  1464. Specifies the name of the character set used in  sending  or  receiving  files.
  1465. This  setting  may  be  superseded  by an Attribute packet of an incoming file.
  1466. Currently, the available names  are  ASCII  (the  default),  ARABIC,  CYRILLIC,
  1467. GREEK,  HEBREW,  JAPAN-EUC,  KATAKANA, LATIN1, LATIN2, LATIN3, THAI, and TRANS-
  1468. PARENT.  There are also special aliases L1, L2, and L3 for  the  LATINx  names.
  1469. All  but  JAPAN-EUC, TRANSPARENT, and ASCII represent 8-bit codes composed of a
  1470. pair of 94- or 96-character sets from the ISO  registry  combined  with  normal
  1471. definitions  for  the  so-called C0 and C1 characters.  JAPAN-EUC is a DBCS for
  1472. encoding Kanji characters, plus Roman, Greek,  and  Cyrillic.    ASCII  is  the
  1473. traditional character set supported by Kermit, but one of the newer, 8-bit sets
  1474. would be preferable for most users.  This option is,  therefore,  a  good  can-
  1475. didate  for  inclusion  in the system INIT file.  See Table 1-1 for the allowed
  1476. combinations of transfer and file character sets.  Explicitly setting this  op-
  1477. tion  has a side effect equivalent to issuing SET ATTRIBUTE ENCODING ON (q.v.).
  1478. There is one exception,  namely,  TRANSPARENT,  which  sets  ENCODING  OFF  and
  1479. replaces  both  translation tables with null operations, regardless of the cur-
  1480. rent nominal file character set.
  1481.  
  1482. The biggest drawback of the built-in tables for the various character  sets  is
  1483. that  neither  the  ISO  registry  nor  IBM  defines any mapping between the C1
  1484. characters (hex 80-9F in ISO arrangements) and the characters  of  EBCDIC  code
  1485. pages.  Thus, the mappings in Kermit-370 tables are somewhat arbitrary, and fu-
  1486. ture pronouncements may suddenly invalidate some or all of those 32 mappings.
  1487.  
  1488.  
  1489. SET TRANSFER LOCKING-SHIFT
  1490.  
  1491. Syntax: SET TRANSFER LOCKING-SHIFT ON or OFF or FORCED
  1492.  
  1493. ON       The Kermit locking-shift protocol is to be used  in  transfers  to  or
  1494.          from cooperating partners, provided that 8th-bit quoting is enabled.
  1495.  
  1496. OFF      The Kermit locking-shift protocol is not to be used.
  1497.  
  1498. FORCED   The  Kermit  locking-shift  protocol  is to be used, regardless of the
  1499.          cooperation of the other Kermit.  The encoding uses only  the  locking
  1500.          shifts, to the exclusion of 8th-bit quoting.
  1501.  
  1502.  
  1503. SET TTABLE
  1504.  
  1505. Syntax: SET TTABLE ON or OFF or KP
  1506.  
  1507. ON      The translation that undoes the terminal controller's ASCII/EBCDIC con-
  1508.         version comes from the TATOE and TETOA tables, rather than the ATOE and
  1509.         ETOA tables (which are used only for translating disk files).  This op-
  1510.         tion has no effect when there is no translation  built  into  the  con-
  1511.         troller, i.e., with SERIES1, GRAPHICS, and AEA connections.
  1512.  
  1513. OFF     The  ATOE  and ETOA tables are used for all translations by Kermit-370.
  1514.         (Default.)
  1515.  
  1516. KP      Same as ON, but also establishes values in the TATOE and  TETOA  tables
  1517.         based  on  IBM's  corporate standard ASCII/EBCDIC translation (distinct
  1518.         from the internationally accepted de facto standard).
  1519.  
  1520.  
  1521. SET 8-BIT-QUOTE
  1522.  
  1523. Syntax: SET 8-BIT-QUOTE char or ON or OFF
  1524.  
  1525. This controls whether eighth-bit prefixing is done and can be used  to  specify
  1526. the  character  to  be used.  This is one of only two Send-Init parameters that
  1527. cannot be SET separately for SEND and RECEIVE.
  1528.  
  1529. char    Eighth-bit prefixing will be done using char, provided the other Kermit
  1530.         agrees.  The default value is an ampersand.
  1531.  
  1532. ON      Eighth-bit prefixing will be done, provided the other Kermit explicitly
  1533.         requests it (and specifies the character).
  1534.  
  1535. OFF     Eighth-bit prefixing will not be done.
  1536.  
  1537.  
  1538. SET SEND/RECEIVE
  1539.  
  1540. The following parameters can be set either as SEND or RECEIVE options.    As  a
  1541. rule,  in  each  pair,  one  is the operational value, and the other is used to
  1542. change the default for Send-Init packets received from the other Kermit and  to
  1543. set  up  parameter values as if the other Kermit had specified them on the pre-
  1544. vious exchange.  When both values are described, the operational  one  will  be
  1545. first.  For all parameters besides QUOTE, the operational value is the RECEIVE.
  1546. After a transfer, the operational values will be unchanged, but the others  (as
  1547. displayed  by  SHOW) will reflect the parameters specified by the other Kermit.
  1548. The underlying defaults established by previous SET subcommands will  still  be
  1549. in effect.  In the syntax descriptions, mode is SEND or RECEIVE.
  1550.  
  1551.  
  1552. END-OF-LINE
  1553.  
  1554. Syntax: SET mode END-OF-LINE number
  1555.  
  1556. RECEIVE should not be changed.
  1557.  
  1558. SEND  may be needed to establish contact.  If the other system needs packets to
  1559. be terminated by anything other than carriage return, specify the decimal value
  1560. of  the  desired  ASCII character.  number must be in the range 0-31 (decimal).
  1561. The default is 13 (CR).
  1562.  
  1563.  
  1564. PACKET-SIZE
  1565.  
  1566. Syntax: SET mode PACKET-SIZE number
  1567.  
  1568. RECEIVE defines number as the maximum length for incoming packets.   The  valid
  1569. range  is  26-9024,  but 94 is the limit for normal short-packet protocol.  The
  1570. default is 80.  Specifying a value greater than 94 is necessary and  sufficient
  1571. to  enable  the  long-packet protocol for transfers to Kermit-370 (provided the
  1572. other Kermit is willing).  Kermit-370 will actually accept long packets in  any
  1573. case,  but  the  protocol  requires  that the other Kermit not send them unless
  1574. Kermit-370 asks.  Raising this value from the default is a good  candidate  for
  1575. inclusion  in  INIT  files.    In  practice,  the packet size may be limited by
  1576. hardware and programming considerations.  See the system-specific chapters  for
  1577. details.
  1578.  
  1579. SEND  might  be  needed  for  sending  files  to  a minimal Kermit that neither
  1580. specifies a buffer size in the Send-Init sequence nor can  accept  the  default
  1581. (80).   It may also be used to specify the packet size for a "raw" download via
  1582. the XTYPE subcommand.  This parameter has no other function and  is  completely
  1583. irrelevant  to  long  packets.    If  the  other  Kermit asks for long packets,
  1584. Kermit-370 will always comply.
  1585.  
  1586.  
  1587. PAD-CHAR
  1588.  
  1589. Syntax: SET mode PAD-CHAR number
  1590.  
  1591. RECEIVE defines number as the character to be used by the other Kermit for pad-
  1592. ding  packets.   The character must be an ASCII control character (in the range
  1593. 0-31).  The default is 0 (NULL).  This option is seldom useful.
  1594.  
  1595. SEND may be needed to establish contact if the other Kermit (or  the  transmis-
  1596. sion line) needs padded packets.
  1597.  
  1598.  
  1599. PADDING
  1600.  
  1601. Syntax: SET mode PADDING number
  1602.  
  1603. RECEIVE  defines  the  number  of pad characters to be used for padding packets
  1604. from the other Kermit.  This number may be anywhere from 0 to 94.  The  default
  1605. is 0.  This option is seldom useful.
  1606.  
  1607. SEND  may  be needed to establish contact if the other Kermit (or the transmis-
  1608. sion line) needs padded packets.
  1609.  
  1610.  
  1611. PARITY
  1612.  
  1613. Syntax: SET mode PARITY MARK or NONE
  1614.  
  1615. RECEIVE specifies the  parity  expected  in  the  transparent-mode  ASCII  data
  1616. received  by the mainframe from a full-screen device.  Such data will typically
  1617. have either all Mark parity (seven data bits with the eighth  bit  set)  or  no
  1618. parity (eight data bits).  This is typically not the same as the parity used in
  1619. communications between the protocol convertor and  the  terminal.    Kermit-370
  1620. must  know  which  kind  of  parity  to  expect in order to calculate checksums
  1621. properly.  Since Kermit-370 does not actually verify parity, the other possible
  1622. variants  (ODD,  EVEN,  and SPACE) are lumped together with MARK parity for the
  1623. purpose of this subcommand, which merely chooses between 7-bit and  8-bit  data
  1624. transfer.  The default is MARK.
  1625.  
  1626. SEND  is  also  an  operational value, specifying the parity to be used in con-
  1627. structing outgoing data packets on full-screen devices.  NONE  is  the  default
  1628. and  is  generally  preferable, in that it permits binary transfers without the
  1629. need for eighth-bit prefixing, but MARK may be required in some configurations.
  1630.  
  1631.  
  1632. QUOTE
  1633.  
  1634. Syntax: SET mode QUOTE char
  1635.  
  1636. SEND indicates a printable character for prefixing (quoting) control characters
  1637. and other prefix characters.  The only good reason to change this would be  for
  1638. sending a file that contains many "#" characters (the normal control prefix) as
  1639. data.  It must  be  a  single  character  with  ASCII  value  33-62  or  96-126
  1640. (decimal).
  1641.  
  1642. RECEIVE  would  be  needed  only  for  talking to a crippled Kermit that uses a
  1643. non-standard quoting character, but does not admit it.
  1644.  
  1645.  
  1646. START-OF-PACKET
  1647.  
  1648. Syntax: SET mode START-OF-PACKET number
  1649.  
  1650. RECEIVE defines number as the character to be expected to  mark  the  start  of
  1651. packets  from the other Kermit.  The character must be an ASCII control charac-
  1652. ter (in the range 0-31).  The default is 1 (SOH).  This may need to be  changed
  1653. to establish contact.
  1654.  
  1655. SEND  may  also  need to be changed to establish contact.  It defines number as
  1656. the character to be used to mark outgoing packets.
  1657.  
  1658.  
  1659. TIMEOUT
  1660.  
  1661. Syntax: SET mode TIMEOUT time
  1662.  
  1663. RECEIVE defines the time in seconds the other Kermit is to wait for a  response
  1664. from  Kermit-370  before  resending  a packet.  The default is 5.  A value of 0
  1665. means the other Kermit should wait indefinitely.
  1666.  
  1667. SEND may be needed to define the time in seconds Kermit-370 is to  wait  for  a
  1668. response  from  the  other  Kermit in the initial packet exchange, although the
  1669. default value 0 (indefinite wait) is probably  satisfactory,  especially  since
  1670. Kermit-370  in  many cases cannot time out anyway.  Specifying a non-zero value
  1671. will prevent the other Kermit from ever  requesting  infinite  "patience"  from
  1672. Kermit-370.
  1673.  
  1674.  
  1675.                               THE SHOW SUBCOMMAND
  1676.  
  1677. Syntax: SHOW [option]
  1678.  
  1679. The  SHOW  subcommand displays the values of all parameters that can be changed
  1680. with the SET subcommand, except CONTROL-CHAR, ATOE, ETOA, TATOE, and TETOA (for
  1681. those,  see  the  TDUMP  subcommand).  If specified, option can be a particular
  1682. parameter or the keyword "ALL" (the default).  Groups of  parameters,  such  as
  1683. SEND,   can   be   displayed  by  requesting  the  group  name,  or  individual
  1684. sub-parameters can be displayed by specifying the complete name.  For example,
  1685.  
  1686.     SHOW RECEIVE EOL
  1687.  
  1688. will display the decimal value of the packet terminator  that  Kermit-370  cur-
  1689. rently expects, i.e., 13.  Similarly,
  1690.  
  1691.     SHOW FOREIGN
  1692.  
  1693. will  display  the  character strings currently in use for prefix and suffix on
  1694. each outgoing filespec.  When "ALL" is specified  or  implied,  all  parameters
  1695. other than the attribute switches are displayed.
  1696.  
  1697.  
  1698.                              THE STATUS SUBCOMMAND
  1699.  
  1700. Syntax: STATUS
  1701.  
  1702. This  subcommand displays information about the previously executed subcommand.
  1703. The response will include either the appropriate error message or  the  message
  1704. "No  errors".    The  initial status is "No file transfers yet".  If the status
  1705. reflects an error condition, the name of the last  file  used  (excluding  TAKE
  1706. files)  will be displayed as well.  If the error was detected by the other Ker-
  1707. mit, the message will be "Micro aborted" followed by the text  from  the  Error
  1708. packet.    Conversely, if Kermit-370 detected the error, the text of the status
  1709. message will have constituted the error packet sent out.  In any case,  if  the
  1710. last  file transfer was cancelled (by virtue of an attribute mismatch or manual
  1711. intervention), the reason for cancellation is displayed.  Also,  if  the  error
  1712. occurred in disk I/O, any available explanatory information is displayed.  Nor-
  1713. mally, the error status is altered only when a  transfer-initiating  subcommand
  1714. (SEND or RECEIVE) is executed, but there are several exceptions.  If an invalid
  1715. subcommand is entered, the status becomes "Kermit command error", and the  next
  1716. subcommand  entered  will reset the status.  Also, in server mode every subcom-
  1717. mand is received through a transfer from the other Kermit and  may  affect  the
  1718. status (except the STATUS subcommand itself, of course).
  1719.  
  1720. Other  information  is also included.  When Kermit-370 has been forced to trun-
  1721. cate one or more records in the last RECEIVE operation (because of the  current
  1722. maximum  record  length),  the  number  of  records truncated is reported.  The
  1723. status display also includes throughput statistics for the last transfer:  num-
  1724. ber of files sent, duration, number of packets, number of retries, and averages
  1725. of bytes/packet and bytes/second.  These last  two  quantities  are  calculated
  1726. separately  for  bytes  sent  and received on the communication line (including
  1727. padding, if any), and the last quantity is also calculated on the basis of  the
  1728. number  of bytes read from or written to disk.  Further, if retries were neces-
  1729. sary, Kermit-370 computes the optimum packet size assuming the retries to  have
  1730. been  due  to  sparse,  Poisson-distributed  bursts of noise.  This is the same
  1731. heuristic  optimum  that  Kermit-370  computes  and  uses  as  an   alternative
  1732. packet-size  limit  when  sending long packets.  If TEST is set on, Kermit also
  1733. reports the maximum size attained by its storage stack since execution began.
  1734.  
  1735.  
  1736.                               THE STOP SUBCOMMAND
  1737.  
  1738. Syntax: STOP
  1739.  
  1740. This is not a subcommand in the usual sense.  Instead, it is a  command  string
  1741. that  can  be entered on the communication line while Kermit-370 is in protocol
  1742. mode and will cause protocol mode to cease immediately.  This may be useful  if
  1743. the  other  Kermit has crashed.  The word "stop" may be entered in either upper
  1744. or lower case, but it must be the only character  string  in  the  "packet"  in
  1745. question.    If  you are using a full-screen terminal, and if other information
  1746. appears on the screen, you must clear that other text from  the  screen  (using
  1747. CLEAR EOF) before pressing ENTER.
  1748.  
  1749.  
  1750.                               THE TAKE SUBCOMMAND
  1751.  
  1752. Syntax: TAKE filespec
  1753.  
  1754. Execute Kermit subcommands from the specified file, usually called a TAKE file.
  1755. The TAKE file may in turn include TAKE subcommands, and the  nesting  may  con-
  1756. tinue  to  a  depth  of  ten.    If a TAKE file includes the subcommand SERVER,
  1757. however, the nesting count is saved and starts over again  in  server  mode  in
  1758. case  the client Kermit should transmit a REMOTE KERMIT TAKE command.  The user
  1759. has the option of seeing the subcommands echoed from the TAKE file as they  are
  1760. executed  and  also the option of automatically exiting from a TAKE file on er-
  1761. ror.  See the subcommand SET TAKE for details.
  1762.  
  1763.  
  1764.                              THE TDUMP SUBCOMMAND
  1765.  
  1766. Syntax: TDUMP table-name or NAMES or TRACE
  1767.  
  1768. This displays the contents of table-name.  The same table can be modified using
  1769. the  SET  subcommand.   The ATOE, ETOA, TATOE, and TETOA translation tables and
  1770. the CONTROL-CHAR prefixing selection  table  can  presently  be  displayed  and
  1771. changed.    The  NAMES table is the transaction log for the last transfer, con-
  1772. sisting of the filespec of each file sent or received, along with the size  (in
  1773. Kbytes)  and  any error messages.  If the Kermit TRACE facility is enabled, the
  1774. TRACE table may be displayed (and destroyed in the process).  This  table  con-
  1775. tains  entries  for  subroutine calls and returns during program execution, but
  1776. Kermit normally does not have the facility enabled.  See  SET  DEBUG  for  more
  1777. details on execution tracing.
  1778.  
  1779.  
  1780.                         THE TYPE AND XTYPE SUBCOMMANDS
  1781.  
  1782. Syntax: [X]TYPE filespec
  1783.  
  1784. These  subcommands  display  the named file.  TYPE is effectively a synonym for
  1785. (and allows the same options as) the host system command for  displaying  files
  1786. at  the  terminal,  but  XTYPE performs a raw file transfer on the current com-
  1787. munication line (which need not be the terminal) according to the current  CON-
  1788. TROLLER  setting.   Thus, XTYPE uses transparent mode if CONTROLLER is SERIES1,
  1789. GRAPHICS, or AEA.  Also, it sends the data in bursts no larger than the current
  1790. SEND  PACKET-SIZE.    Since XTYPE is basically a modified SEND, the options al-
  1791. lowed on the filespec for SEND are also allowed for XTYPE.
  1792.  
  1793.  
  1794.                             THE VERSION SUBCOMMAND
  1795.  
  1796. Syntax: VERSION
  1797.  
  1798. This subcommand displays the program version number and date.
  1799.  
  1800.  
  1801. 1.5. Before Connecting to the Mainframe
  1802.  
  1803. Several options must be set in the micro Kermit before connecting to an IBM 370
  1804. system  as  a  line-mode  device.  You should set LOCAL-ECHO to ON (to indicate
  1805. half-duplex).  This is the norm but not true in absolutely every case; if  each
  1806. character  appears  twice  on  your  terminal  screen,  set  LOCAL-ECHO to OFF.
  1807. FLOW-CONTROL should be set to NONE, and on some systems HANDSHAKE should be set
  1808. to XON.  The parity should be set according to the system's specifications.  On
  1809. some micro Kermits, all of the above is done in one step using the DO IBM macro
  1810. (or SET IBM ON).  Set the baud rate to correspond to the line speed.
  1811.  
  1812. Connecting  through  a full-screen device also requires that certain options be
  1813. set in the micro Kermit.   You  should  set  LOCAL-ECHO  to  OFF  (to  indicate
  1814. full-duplex).   FLOW-CONTROL should be set to XON/XOFF, and HANDSHAKE should be
  1815. set to OFF.  For many systems, the PARITY should be set to EVEN.  Set the  baud
  1816. rate to correspond to the line speed.
  1817.  
  1818. One  exception  to these rules is the case where the micro Kermit is attempting
  1819. automated  file  transfer,  e.g.,  downloading  several  separate  files   from
  1820. Kermit-370  running  in server mode.  In fact, under those circumstances, hand-
  1821. shaking is necessary even with "SERIES1" connections, and the two Kermits  must
  1822. be  instructed to adopt a common handshake character (e.g., by SET HANDSHAKE 10
  1823. to Kermit-370 and SET HANDSHAKE LF to the micro).
  1824.  
  1825. In any case, you should make sure that either the micro  Kermit  or  Kermit-370
  1826. will  provide  timeouts  during file transfers (if not both).  Some variants of
  1827. Kermit-370 (notably CMS) cannot provide timeouts, and you may need to  set  the
  1828. TIMER to ON in the micro.
  1829.  
  1830. When  you are connecting through a protocol convertor, it is useful to know the
  1831. key sequence that causes the screen image to be repainted from the controller's
  1832. memory.  In many cases, it is CTRL-V, although CTRL-G and CTRL-C are also some-
  1833. times used.  In general, this sequence should be typed whenever reconnecting to
  1834. Kermit-370  after being in Kermit protocol mode (and sometimes after merely es-
  1835. caping to the local Kermit), since the  local  Kermit  may  have  modified  the
  1836. screen.
  1837.  
  1838.  
  1839. 1.6. Trouble-shooting Protocol Converters
  1840.  
  1841. Many,  but not all, protocol converters have transparent modes that permit Ker-
  1842. mit file transfers.  The welter of competing and often incompatible  communica-
  1843. tions  devices  would  cause  a major headache, except for three circumstances.
  1844. First, Kermit-370 has routines for automatically detecting which kind of  front
  1845. end  is  controlling  the  current session; second, the Kermit installer is en-
  1846. couraged to tailor Kermit to force the correct choice  of  CONTROLLER  whenever
  1847. those  routines  don't  work  properly; and, third, Kermit offers a last-resort
  1848. mode of operation that will work with almost any protocol converter.    Because
  1849. of  the  limitations  in  the  catch-all mode (known as FULLSCREEN mode), it is
  1850. still best to take advantage of the transparency, if any, in the protocol  con-
  1851. verter,  and the automatic detection routines still play an important role.  It
  1852. will be instructive to outline what those routines actually do and how they can
  1853. go wrong.
  1854. Recognizing a Series/1
  1855.  
  1856. Although  protocol  converters are advertised as simulating the behavior of IBM
  1857. 3270-type terminals, there generally are differences which  could  be  used  to
  1858. distinguish  each  type  of device from the others and from real 3270-type ter-
  1859. minals.  However, all that really matters to Kermit-370 is whether there  is  a
  1860. transparent  mode  available  such  that file transfers can be carried out.  To
  1861. date, only three fundamentally different transparent modes have  been  reported
  1862. to  Columbia,  and  it seems likely that no others have been (or, perhaps, ever
  1863. will be) implemented.  All are supported by Kermit.
  1864.  
  1865. Kermit-370 recognizes these front  ends  automatically  by  making  two  simple
  1866. tests.    The  first  takes advantage of one of the advanced features first im-
  1867. plemented in the Yale ASCII system and  subsequently  copied  in  many  of  the
  1868. devices that adopted the same transparent mode.  This feature is a special 3270
  1869. data-stream order which requests a status report from the  protocol  converter.
  1870. Kermit  sends  this  order  and then reads the "3270 screen".  If Kermit sees a
  1871. valid status report, it sets CONTROLLER to SERIES1 and stops testing.
  1872.  
  1873.  
  1874. Two catches
  1875.  
  1876. Obviously, the Yale status order is not implemented  in  most  other  kinds  of
  1877. hardware.  Thus, the order would be rejected by a non-Yale-type controller, and
  1878. that could have undesirable side effects on the hardware.  However, hardware is
  1879. generally  designed  to be robust -- the real drawback lies in the side effects
  1880. on certain communications software (notably VTAM/TSO), which may respond  badly
  1881. while  trying to protect the robust hardware from illegal orders.  If it proves
  1882. impossible to make the external software behave properly, the only recourse  is
  1883. to  modify  Kermit-370  to skip the first test altogether and possibly to force
  1884. the CONTROLLER setting; this modification is described in the relevant "Beware"
  1885. file in a note dated 89/2/27.
  1886.  
  1887. Catch  Two  is  that  the status order is not implemented in all of the devices
  1888. that support Yale-ASCII-style transparent mode.  This means that  some  devices
  1889. "fall  through  the  cracks"  in this procedure.  A site where such devices are
  1890. used may find it expedient to modify Kermit (following the same  "Beware"  pat-
  1891. tern)  to  force the procedure to set CONTROLLER to SERIES1 (assuming there are
  1892. no other protocol converters also in use that support one of the  other  trans-
  1893. parent modes).  A list of such devices can be found in a footnote in the Kermit
  1894. distribution file ik0aaa.hlp.
  1895.  
  1896.  
  1897. Recognizing a 3174
  1898.  
  1899. The second diagnostic test uses a hardware command (Read Partition Query)  that
  1900. is  defined  by  IBM, but is not implemented on all 3270-type equipment.  There
  1901. is, thus, the same danger as in the first test, but the danger  appears  to  be
  1902. slight.    Indeed,  both  CMS  and  TSO allow a user program to know in advance
  1903. whether a Query is permitted.  The Query  response  consists  of  one  or  more
  1904. structured fields, and the 3174 AEA ASCII Graphics system (the only device with
  1905. the AEA style of transparency) is easily identified by the appearance and  con-
  1906. tent  of  a particular type of field.  In fact, it is possible to tell from the
  1907. Query data whether the particular  3174  line  is  allowed  to  use  the  ASCII
  1908. Graphics  transparency.  Therefore, this test has three possible outcomes: Ker-
  1909. mit may detect a transparency-enabled 3174 line (and set CONTROLLER to AEA); it
  1910. may  detect  an  incapable  3174  line  (and set CONTROLLER to NONE); or it may
  1911. detect "none of the above" (and set CONTROLLER to GRAPHICS).  Thus, aside  from
  1912. the  exceptions  already noted, GRAPHICS simply means that the front end either
  1913. supports SAS-style transparency or none at all.
  1914.  
  1915.  
  1916. Fallback positions
  1917.  
  1918. What should you do when the automatic detection fails?   Obviously,  the  first
  1919. thing is Be Prepared.  Often, the misbehavior of VTAM can be halted by pressing
  1920. ENTER or PA1, so you should be sure to know how to generate a PA1  when  trying
  1921. out  Kermit on an unfamiliar type of protocol converter.  Also, you should know
  1922. what kind of  transparency  to  expect  for  the  front  end  and  verify  that
  1923. Kermit-370 has, in fact, set CONTROLLER appropriately.  This means checking the
  1924. list of devices in the Kermit distribution file ik0aaa.hlp.  If your configura-
  1925. tion  is  listed  as unsupported, you may be wasting your time, but the list is
  1926. not necessarily up-to-date.  If your configuration is not listed  at  all,  you
  1927. have  the opportunity to be a pioneer and report your findings back to Columbia
  1928. for inclusion in future editions of the list.  There are a few rules  of  thumb
  1929. for quickly deducing the controller type by reading the manuals for the device;
  1930. the manuals may not be specific enough, but this is clearly the easiest way  of
  1931. determining whether Kermit can support a given device and which controller type
  1932. is applicable.    The  rules  are  as  follows  (in  order  of  simplicity  and
  1933. likelihood):
  1934.  
  1935.    1. GRAPHICS or SERIES1 may be implied when the device has a transparent
  1936.       or graphics mode described as compatible with that  of  a  supported
  1937.       device listed in ik0aaa.hlp.
  1938.  
  1939.    2. SERIES1  is  implied when the device runs the "Yale ASCII Communica-
  1940.       tion System" or something with a similar name.
  1941.  
  1942.    3. GRAPHICS is implied if the manual mentions the SAS Institute in  the
  1943.       context of ASCII graphics.
  1944.  
  1945.    4. GRAPHICS  is implied when output transparent data may be preceded by
  1946.       a WCC (Write Control Character) and 70 (hex).
  1947.  
  1948.    5. SERIES1 is implied when transparent data must be preceded by  a  WCC
  1949.       and either 115D7F110005 (write-read) or 115D7F110000 (write-only).
  1950.  
  1951.    6. GRAPHICS  or  SERIES1 may be implied when some of the manufacturer's
  1952.       other products are listed in ik0aaa.hlp, and all are shown as  being
  1953.       of one type.
  1954.  
  1955.    7. If  none of the above rules apply, but the manuals describe a trans-
  1956.       parent mode in detail, the device may be a totally new  type.    The
  1957.       distribution  file  ik0con.hlp has hints on implementing Kermit sup-
  1958.       port for the new type.
  1959.  
  1960.    8. If nothing else works, you can probably use FULLSCREEN mode, as long
  1961.       as the micro Kermit supports it.
  1962.  
  1963. If  Kermit tries to transfer a file with the wrong CONTROLLER value, there is a
  1964. distressing possibility for the session to lock or, at least, appear  to  lock.
  1965. When  and  if  this  happens,  be  sure  to connect back to the mainframe, type
  1966. "STOP", and press ENTER several times (perhaps as  many  as  15  times)  before
  1967. taking any drastic steps like breaking the connection.  "STOP" is a special es-
  1968. cape mechanism for getting out of Kermit protocol  mode  quickly.    Kermit-370
  1969. recognizes such a request in most situations where terminal I/O is not entirely
  1970. frozen.  Sometimes, apparent lock-ups are due to something as simple as  incor-
  1971. rect  parity settings in the micro Kermit, so always check the basic communica-
  1972. tion settings and, if necessary, experiment  before  trying  a  different  CON-
  1973. TROLLER type.  Also, to avoid unnecessary confusion, check for the existence of
  1974. a Kermit initialization file (possibly created by the installer) which could be
  1975. re-setting  CONTROLLER  after  the  automatic  procedure  has finished.  Such a
  1976. re-setting is a poor idea in an initialization file, even a personal  one,  un-
  1977. less there is absolutely only one kind of communications equipment on your sys-
  1978. tem.
  1979.  
  1980. If file transfers do not work at first, it is best to do the  following  before
  1981. trying again:
  1982.  
  1983.    1. Reduce the packet size to no more than 80 at both ends.
  1984.  
  1985.    2. Enable 8th-bit quoting at both ends.
  1986.  
  1987.    3. Set SEND PARITY MARK in Kermit-370.
  1988.  
  1989. If  those  changes do not make transfers work, the next remedial action depends
  1990. on the symptoms of failure.
  1991.  
  1992.    - No packets exchanged and session locked up after reconnecting: change
  1993.      packet characters in both directions.
  1994.  
  1995.    - No  packets  exchanged,  but  no  lockup: change packet characters or
  1996.      parity.
  1997.  
  1998.    - Always multiple retries of third or fourth packet:  reduce  receiving
  1999.      packet size.
  2000.  
  2001.    - Multiple  retries  after random number of packets: check hardware and
  2002.      cables.
  2003.  
  2004.    - Multiple retries after file-dependent number of  packets:  check  for
  2005.      equipment  that intercepts one or more printable characters or reduce
  2006.      the packet size.
  2007.  
  2008. When all else fails, you should be ready to reset CONTROLLER by  hand  and  try
  2009. again.    The  change  most likely to be necessary is from GRAPHICS to SERIES1.
  2010. However, it is conceivable that the installer has modified Kermit-370  at  your
  2011. location  to  force  the  CONTROLLER setting from the start, in which case, you
  2012. might need to go the other way.  Normally,  Kermit's  diagnostic  procedure  at
  2013. start-up takes one or two seconds (because of programmed delays), so you should
  2014. be suspicious if the Kermit prompt appears  immediately  after  you  start  the
  2015. program.    The  only  initial CONTROLLER setting that you should not change by
  2016. hand is NONE, which means that Kermit-370 has recognized a 3174 AEA  line  that
  2017. is  not configured for file transfer (or else the Kermit installer has a warped
  2018. sense of humor).
  2019.  
  2020. If no amount of experimenting gets a transparent mode to work, it  is  time  to
  2021. recheck  the list of supported devices and the age of your equipment.  If yours
  2022. is very old, it may require new microcode or some other  software  or  hardware
  2023. upgrade.    In any case, if your results (whether positive or negative) are not
  2024. already shown in ik0aaa.hlp, you should report them to Columbia so that  others
  2025. may profit by your experience.
  2026.  
  2027.  
  2028. 1.7. After Returning from Kermit-370
  2029.  
  2030. When  Kermit-370  receives a QUIT or EXIT subcommand or finishes the subcommand
  2031. or subcommands specified in the original command string  that  invoked  Kermit,
  2032. control is returned to the caller.  Before returning, Kermit-370 closes any ac-
  2033. tive TAKE files (the EXIT or QUIT subcommand may be issued from a  TAKE  file).
  2034. On  return,  the completion code is set from the current error status according
  2035. to the codes in Table 1-4.
  2036.  
  2037. The error codes in Table 1-4 bear no relationship to the severity  of  the  as-
  2038. sociated error conditions, aside from the assignment of code 0.  The underlying
  2039. rationale is that the only current generic system for the treatment of  comple-
  2040. tion  codes is to take a non-zero code as an indication of error.  Indeed, Ker-
  2041. mit returns a completion code of 0 when "error" condition 1 holds.
  2042.  
  2043.  
  2044. 1.8. What's New
  2045.  
  2046. Below is a list of the changes in Version 4.3 of Kermit-370.
  2047.  
  2048.    1. Compatibility with the (aging) F-level assembler.
  2049.  
  2050.    2. Support for LATIN2, LATIN3, TRANSPARENT, CP870, CP905, and CP880, as
  2051.       well as the aliases L1, L2, and L3.  New alias CP1047 for EBCDIC.
  2052.  
  2053.    3. Support for IBM 3174 ASCII Graphics mode.
  2054.  
  2055. -------------------------------------------------------------------------------
  2056.  
  2057. Code  Symbol  Error Message
  2058.  0    NOE     No errors
  2059.  1    NFT     No file transfers yet
  2060.  2    TRC     Transfer cancelled
  2061.  3    USC     Invalid server command
  2062.  4    TIE     Terminal I/O error
  2063.  5    BPC     Bad packet count or chksum
  2064.  6    IPS     Invalid packet syntax
  2065.  7    IPT     Invalid packet type
  2066.  8    MIS     Lost a packet
  2067.  9    NAK     Micro sent a NAK
  2068. 10    ABO     Micro aborted
  2069. 11    FNE     Invalid file name
  2070. 12    FNF     File not found
  2071. 13    FUL     Disk or file is full
  2072. 14    DIE     Disk I/O error
  2073. 15    MOP     Missing operand
  2074. 16    SYS     Illegal system command
  2075. 17    KCE     Kermit command error
  2076. 18    TIM     No packet received
  2077. 19    RTR     Records truncated
  2078. 20    COM     Bad communication line
  2079. 21    PTY     8th-bit quote not set
  2080. 22    FTS     File too short
  2081. 23    SOH     Missing start-of-packet
  2082. 24    OPT     Option error on filespec
  2083. 25    DSP     Unable to dispose of file
  2084.  
  2085.               Table 1-4:  Error messages and codes for Kermit-370
  2086.  
  2087.  
  2088. -------------------------------------------------------------------------------
  2089.  
  2090.  
  2091.    4. Improved  controller  detection,  including  local customization op-
  2092.       tions.
  2093.  
  2094.    5. Support for new unprefixed transmission of selected control  charac-
  2095.       ters.
  2096.  
  2097.    6. Support for REMOTE PRINT, REMOTE MAIL, and REMOTE SUBMIT.
  2098.  
  2099.    7. Improved  error message for bad packet-size, new alias PACKET-LENGTH
  2100.       for PACKET-SIZE.
  2101.  
  2102.    8. Correct observance of FILE COLLISION for all files in a group.
  2103.  
  2104.    9. Ignoring  spurious  flow-control  "packets"   from   (for   example)
  2105.       MS-Kermit.
  2106.  
  2107.   10. Support for new locking-shift Kermit protocol.
  2108.  
  2109.   11. Support  for  Japanese  Kanji file transfer and support for the Thai
  2110.       and Arabic character sets.
  2111.  
  2112.   12. New versions of Kermit with the interactive  messages  in  languages
  2113.       other than English.
  2114.  
  2115.   13. New FULLSCREEN controller type.
  2116.  
  2117.   14. New HINTS subcommand.
  2118.  
  2119.   15. More graceful recovery from terminal I/O errors and exceptions.
  2120.  
  2121.   16. Support for SNA LU1 3770-type devices and 8-bit, no-parity devices.
  2122.  
  2123.   17. Optional  conversion  of  EBCDIC printer carriage control into ASCII
  2124.       control characters.
  2125.  
  2126.   18. Support for STOP command on "dumb" 3270 terminals and  PCI  protocol
  2127.       converters.
  2128.  
  2129.   19. New efficiency display in STATUS report, based on SPEED setting.
  2130.  
  2131.   20. New, uniform messages upon entering protocol mode, in the form "KER-
  2132.       MIT READY TO SEND..." (or RECEIVE or SERVE).
  2133.  
  2134.   21. 8-bit XECHO output.
  2135.  
  2136.   22. Control prefixing for C1 controls.
  2137.  
  2138.   23. New VERSION subcommand.
  2139.  
  2140.   24. Improved debugging facilities.
  2141.  
  2142.  
  2143. 1.9. What's Missing
  2144.  
  2145. Work on Kermit-370 will continue.  Features that need to be improved  or  added
  2146. include:
  2147.  
  2148.    - Implement file archiving.
  2149.  
  2150.    - Implement file transfer checkpointing.
  2151.  
  2152.    - Add SET REPEAT subcommand.
  2153.  
  2154.    - Improve Kermit-370 operation as a local Kermit.
  2155.  
  2156.    - Implement public server mode.
  2157.  
  2158.    - Allow  REMOTE  KERMIT  HELP, REMOTE KERMIT DIR, and REMOTE SET from a
  2159.      micro.
  2160.  
  2161.    - Add new SET FILE LONGLINE DISCARD option to allow multi-file transfer
  2162.      to proceed past a truncation problem.
  2163.  
  2164.    - System-specific upgrades; see the respective chapters for details.
  2165.  
  2166. Anyone interested in working on these or other improvements should first get in
  2167. touch with the Center for Computing Activities at Columbia University  to  find
  2168. out if someone else has already begun a similar project (and, if so, who).
  2169.  
  2170.  
  2171. 1.10. Further Reading
  2172.  
  2173. Below is a list of references for some of the material in this chapter.
  2174.  
  2175.    1. About  Type:  IBM's  Technical Reference for 240-Pel Digitized Type,
  2176.       S544-3156-02 (1989).  This manual contains  visual  tables  of  many
  2177.       EBCDIC  code  pages  and a comprehensive list of character names and
  2178.       acronyms.
  2179.  
  2180.    2. IBM System/370 Reference Summary, GX20-1850-3 (1976).   This  refer-
  2181.       ence card contains EBCDIC and ASCII character codes.
  2182.  
  2183.    3. IBM   VS   Fortran   Application  Programming:  Language  Reference,
  2184.       GC26-3986-1 (1982).  Appendix E contains a table of EBCDIC and ASCII
  2185.       characters with an implied full 256-byte translation table.
  2186.  
  2187.    4. IBM  3174  Character  Set Reference, GA27-3831-02 (1990).  Chapter 5
  2188.       contains visual tables of many EBCDIC code pages.
  2189.  
  2190.    5. Info-Kermit Digest Vol. 11 #1 (1989).   This  issue  contains  draft
  2191.       specifications of some Kermit protocol extensions.
  2192.  
  2193.    6. ISO  International  Register of Coded Character Sets to be used with
  2194.       Escape Sequences (1989).  This (very large)  document  has  complete
  2195.       and  unambiguous  descriptions of standard coded character sets.  It
  2196.       can be obtained from the ECMA.
  2197.  
  2198.    7. Kermit, A File Transfer Protocol by Frank  da  Cruz;  Digital  Press
  2199.       (1987).    This  book  contains a thorough description of the Kermit
  2200.       protocol and services with copious examples.
  2201.  
  2202.    8. Kermit distribution file ISOK7.TXT (1992).  This  preliminary  draft
  2203.       describes  the  new  transfer  protocol, including the international
  2204.       character-set support.
  2205.  
  2206.    9. Kermit News Vol. 3 #1, p.5, "Dynamic Packet  Size  Control"  (1988).
  2207.       This article describes an algorithm for optimizing Kermit throughput
  2208.       in the face of line noise.
  2209.  
  2210.   10. Kermit News #4, p.16, "International Character Sets" (1990).    This
  2211.       article discusses the new transfer protocol.
  2212.  
  2213.   11. ASCII  and  EBCDIC Character Set and Code Issues in Systems Applica-
  2214.       tions Architecture, SHARE white paper by Edwin Hart  (1989).    This
  2215.       document,  available as file SHARE REQUIRE from LISTSERV@JHUVM, lays
  2216.       out general considerations for character codes and translatability.
  2217.  
  2218.   12. Kermit distribution file LSHIFT.TXT (1991).  This file describes the
  2219.       new  protocol  extension  for  better compression of 8th-bit text on
  2220.       7-bit channels.
  2221. 2. IBM MUSIC/SP KERMIT
  2222.  
  2223. Program:       John Chandler  (Harvard/Smithsonian  Center  for  Astrophysics);
  2224.                contributions  from Pierre Goyette (McGill U), Vace Kundakci and
  2225.                Daphne Tzoar (Columbia U), Bob Shields (U. Maryland), Greg Small
  2226.                (UC  Berkeley), Clark Frazier (Harvard Bus. Sch.), Bob Bolch and
  2227.                Steve Blankinship (Triangle), Andre Pirard (U. Liege)
  2228. Language:      IBM/370 Assembler
  2229. Documentation: Pierre Goyette
  2230. Version:       4.3.0 (93/9/30)
  2231. Date:          1993 September
  2232.  
  2233.  
  2234. Kermit-MUSIC Capabilities At A Glance:
  2235.  
  2236.   Local operation:                   No
  2237.   Remote operation:                  Yes
  2238.   Transfers text files:              Yes
  2239.   Transfers binary files:            Yes
  2240.   Wildcard send:                     Yes
  2241.   ^X/^Z interruption:                Yes (through micro)
  2242.   Filename collision avoidance:      Yes
  2243.   Can time out:                      Yes (line mode only)
  2244.   8th-bit prefixing:                 Yes
  2245.   Repeat count prefixing:            Yes
  2246.   Alternate block checks:            Yes
  2247.   Terminal emulation:                No
  2248.   Communication settings:            No
  2249.   Transmit BREAK:                    No
  2250.   Packet logging:                    Yes
  2251.   Transaction logging:               Yes
  2252.   Session logging:                   No
  2253.   Raw transmit:                      Yes (no prompts)
  2254.   Sliding window:                    No
  2255.   Long packets:                      Yes
  2256.   Act as server:                     Yes
  2257.   Talk to server:                    Yes
  2258.   Advanced server functions:         Yes
  2259.   Advanced commands for servers:     Yes
  2260.   Local file management:             Yes
  2261.   Handle Attribute Packets:          Yes
  2262.   Command/init files:                Yes
  2263.   Command macros:                    No
  2264.  
  2265.  
  2266. MUSIC Specifics of Kermit-370:
  2267.  
  2268.   Global INIT file:                  SYSTEM.KERMINI
  2269.   User INIT file:                    KERMIT.INI
  2270.   Debug packet log:                  KERMIT.LOG
  2271.   Server reply log:                  KERMIT.REPLY
  2272.   Mail command:                      KERMAIL (not supported)
  2273.   Print command:                     KERMPRT (not supported)
  2274.   Submit command:                    KERMSUB (not supported)
  2275.   Maximum packet size:               1913 (7171), 230 (TTY)
  2276.   Maximum disk LRECL:                32767
  2277.  
  2278. Kermit-MUSIC is a member of the generic Kermit-370 family and  shares  most  of
  2279. the  features and capabilities of the group.  As its name implies, Kermit-MUSIC
  2280. is the variant of Kermit-370 that runs under  the  MUSIC/SP  operating  system.
  2281. The   primary  documentation  for  Kermit-MUSIC  is  actually  the  chapter  on
  2282. Kermit-370 (entitled IBM 370 Kermit), which describes general  properties;  the
  2283. present  chapter  assumes  the reader is familiar with that material.  Only the
  2284. details specific to MUSIC operation will be discussed here, e.g., command  syn-
  2285. tax  relating  to  the  MUSIC file system or commands not offered in general by
  2286. Kermit-370.
  2287.  
  2288.  
  2289. 2.1. The MUSIC/SP File System
  2290.  
  2291. The features of the MUSIC file system of greatest interest to Kermit users  are
  2292. the  format  of  file specifications (or filespecs) and the concept of records.
  2293. The latter is described in the Kermit-370 chapter.
  2294.  
  2295. The MUSIC filespec (called a Save File) takes the form
  2296.  
  2297.     [code:]filename
  2298.  
  2299. The filename can be up to 17 characters in length and consists of one  or  more
  2300. substrings  joined by periods.  The substrings can contain any of the following
  2301. characters:
  2302.  
  2303.     A through Z, 0 through 9, national characters # $ @
  2304.  
  2305. The only restriction is that the first substring must start with a letter or  a
  2306. national  character.    You may also prefix the filename with a 4-digit code if
  2307. you have enough privileges.  By default, the "working directory" will be set to
  2308. the your signon code.  All files on this code can be accessed directly.  If you
  2309. have enough privileges and wish to transfer files to or from a MUSIC code other
  2310. than your signon code, you may change the "working directory" to the new code.
  2311.  
  2312. MUSIC/SP  allows  a  group of files to be specified in a single filespec by in-
  2313. cluding the special "wildcard" characters "*" and  "?".    A  "*"  matches  any
  2314. string  of characters (even a null string) from the current position to the end
  2315. of the field; a "?" matches any single character.  It is important to  remember
  2316. that  the  period is part of the filename.  Unlike a PC, the file specification
  2317. "*" will match all filenames.  Here are some examples:
  2318.  
  2319.   *.COBOL     All files of that end with .COBOL
  2320.  
  2321.   F*          All files whose names start with F.
  2322.  
  2323.   ?           All files with one-character filename.
  2324.  
  2325. MUSIC files, like those in other IBM 370 systems, are record-oriented (see  the
  2326. introduction  to  the  Kermit-370  chapter).    In  particular, MUSIC files are
  2327. characterized  by  record  format  (RECFM),  which  may  be   fixed-length   or
  2328. varying-length,  and  by  maximum  record  length  (LRECL).  The size of record
  2329. blocks is irrelevant, however, because MUSIC performs the blocking and deblock-
  2330. ing  operations  automatically  and  transparently,  including  the spanning of
  2331. records across block boundaries.  Records in MUSIC files may  be  up  to  32767
  2332. bytes  long.    A third record format, namely, undefined-length, is possible in
  2333. MUSIC, but is rarely used and is not supported by Kermit-MUSIC at present.
  2334.  
  2335. When sending files, Kermit-MUSIC includes a date/time attribute  if  available.
  2336. However, any date attribute of a file received into MUSIC is merely checked for
  2337. validity and then discarded in favor of the current date.
  2338.  
  2339. Another file system feature of occasional interest is the  means  of  reporting
  2340. errors.    When Kermit-MUSIC encounters a disk error, it attempts to prepare an
  2341. explanatory message for inclusion in the STATUS report.  The  explanations  can
  2342. be found in the MUSIC reference manual under the MFIO Error Codes section.
  2343.  
  2344.  
  2345. 2.2. Program Operation
  2346.  
  2347. At   startup   time,   Kermit-MUSIC   looks   for   two  initialization  files,
  2348. *COM:SYSTEM.KERMINI and KERMIT.INI.  If either of or both of these files exist,
  2349. they will be read and executed.  If they do not exist on your code, Kermit will
  2350. still attempt to locate the public  verion  of  the  system  file.    The  file
  2351. SYSTEM.KERMINI  should  be  saved  as  a  PUBLIC  file by a systems programmer,
  2352. preferably the same code where the Kermit executable module is kept.  The  file
  2353. KERMIT.INI can be maintained by the user on any code.
  2354.  
  2355. One  important  distinction  between  Kermit-MUSIC  and other Kermits is that a
  2356. program running under MUSIC/SP is unable to interrupt a read on the terminal if
  2357. you  are  connected  through a 7171 or Series/1 protocol converter.  This means
  2358. that the MUSIC variant of Kermit cannot time out after sending a packet on such
  2359. devices.    The only way to time out is from the other side:  typing a carriage
  2360. return to the local Kermit causing it to retransmit  its  last  packet,  or  an
  2361. automatic timeout as provided by most other Kermits.
  2362.  
  2363. If  you  are connecting to MUSIC through a 7171 or Series/1 protocol converter,
  2364. then no handshaking is required since Kermit-MUSIC can control the data sent to
  2365. the micro Kermit.  But if you are connected as a "TTY" terminal (through a 370x
  2366. type line), then you must enable handshaking on the micro Kermit.  This is  be-
  2367. cause the MUSIC/SP system will add an XON (X'11') character to the end of every
  2368. packet sent.  The micro Kermit must not reply with the next packet  before  the
  2369. XON  character  is  received.   Usually the command "SET HANDSHAKE XON" or "SET
  2370. HANDSHAKE 17" on the micro Kermit will do this.
  2371.  
  2372.  
  2373. Interactive Operation:
  2374.  
  2375. To run Kermit-MUSIC interactively, invoke the program from MUSIC by typing KER-
  2376. MIT.  When you see the prompt,
  2377.  
  2378.     Kermit-MUSIC>
  2379.  
  2380. you may type a Kermit subcommand.  When the subcommand completes, Kermit issues
  2381. another prompt.  The cycle repeats until you exit from the program.    For  ex-
  2382. ample:
  2383.  
  2384.     KERMIT
  2385.  
  2386.     Kermit-MUSIC Version 4.3.0 (93/9/30)
  2387.     Enter ? for a list of valid commands
  2388.  
  2389.     Kermit-MUSIC>send foo.*
  2390.  
  2391.       Files with prefix FOO. are sent
  2392.  
  2393.     Kermit-MUSIC>receive test.spss
  2394.  
  2395.       File is received and called TEST.SPSS
  2396.  
  2397.     Kermit-MUSIC>exit
  2398.  
  2399.  
  2400. Command Line Invocation:
  2401.  
  2402. Kermit-MUSIC  may also be invoked with a command line argument from MUSIC.  The
  2403. argument is interpreted as a subcommand to be executed by Kermit after  comple-
  2404. tion of the initialization.  For instance:
  2405.  
  2406.     KERMIT send test.fortran
  2407.  
  2408. or
  2409.  
  2410.     KERMIT server
  2411.  
  2412. Kermit will exit and return to MUSIC after completing the specified subcommand.
  2413.  
  2414.  
  2415. Server mode:
  2416.  
  2417. Command  execution  in server mode is different in several respects from normal
  2418. operation.  First of all, some Kermit subcommands are not allowed (see the list
  2419. of  subcommands  in  the  Kermit-370 chapter).  Moreover, command errors always
  2420. terminate any active TAKE file.
  2421. 2.3. Kermit-MUSIC Subcommands
  2422.  
  2423. Kermit-MUSIC supports all the subcommands described in the Kermit-370  chapter,
  2424. plus  one  more: "MUSIC", which is a synonym for the generic subcommand "HOST".
  2425. This section concentrates on the subcommands that have special form or  meaning
  2426. for  Kermit-MUSIC.    These  are  ordered  alphabetically.   See the chapter on
  2427. Kermit-370 for further details.
  2428.  
  2429.  
  2430.                               THE CWD SUBCOMMAND
  2431.  
  2432. Syntax: CWD code
  2433.  
  2434. The CWD (Change Working Directory) subcommand establishes a new  default  code.
  2435. code may be any valid 4-digit MUSIC code.  Subsequent file transfers take place
  2436. preferentially to and from the default code.  The initial code  is  the  user's
  2437. signon code.
  2438.  
  2439.  
  2440.                            THE DIRECTORY SUBCOMMAND
  2441.  
  2442. Syntax: DIRECTORY [filespec]
  2443.  
  2444. Under  Kermit-MUSIC,  the  DIRECTORY subcommand is similar to the MUSIC LIBRARY
  2445. command.  DIRECTORY will also display the number of lines in a file.
  2446.  
  2447.  
  2448.                               THE HELP SUBCOMMAND
  2449.  
  2450. Syntax: HELP
  2451.  
  2452. This subcommand displays information on the use of Kermit-MUSIC.
  2453.  
  2454.  
  2455.                              THE MUSIC SUBCOMMAND
  2456.  
  2457. Syntax: MUSIC text of command
  2458.  
  2459. Currently, MUSIC  does  not  support  the  execution  of  host  commands  under
  2460. Kermit-MUSIC.    However,  the MUSIC commands LIBRARY, PURGE, RENAME, COPY, and
  2461. LIST are simulated by Kermit itself, thus providing a set  of  subcommands  for
  2462. managing local files.  The subcommand MUSIC is synonymous with the generic sub-
  2463. command HOST.
  2464.  
  2465.  
  2466.                             THE RECEIVE SUBCOMMAND
  2467.  
  2468. Syntax: RECEIVE [filespec]
  2469.  
  2470. The RECEIVE subcommand tells Kermit to receive a file or file  group  from  the
  2471. other system.  You should then issue a SEND subcommand to the other Kermit.
  2472.  
  2473. If the optional filespec is omitted, Kermit-MUSIC will use the name(s) provided
  2474. by the other Kermit.  If that name is not a legal MUSIC file name, Kermit-MUSIC
  2475. will  delete  excess  characters  and  will change illegal characters to dollar
  2476. signs.  A filespec in the subcommand indicates  what  name  the  incoming  file
  2477. should  be  given.    Wildcards  may  not be used.  If the optional filespec is
  2478. provided, but more than one file arrives, the first file will be  stored  under
  2479. the  given  filespec, and the remainder will be stored under their own names on
  2480. the default code.
  2481.  
  2482. For purposes of folding  and  truncation,  the  maximum  record  length  for  a
  2483. received file is 32767 if RECFM is V and "LRECL" if RECFM is F.
  2484.  
  2485. If  the  incoming  file has the same name as an existing file, the action taken
  2486. depends on the FILE COLLISION setting.  The possible settings and  their  mean-
  2487. ings  are  given  in  the  Kermit-370 chapter.  Two of the settings (BACKUP and
  2488. RENAME) require that Kermit-MUSIC  change  the  incoming  name  so  as  not  to
  2489. obliterate the pre-existing file.  It attempts to find a unique name by succes-
  2490. sively modifying the original and checking for the existence of such a file  at
  2491. each  step.  The procedure begins by truncating the filename to fifteen charac-
  2492. ters if necessary, and then appending "$0".  If a file  by  that  name  exists,
  2493. Kermit  then  replaces  the  "0" with a "1".  It continues in this manner up to
  2494. "9", and if an unused name cannot be found, the transfer fails.
  2495.  
  2496.  
  2497.                               THE SEND SUBCOMMAND
  2498.  
  2499. Syntax: SEND [filespec[<options>] [foreign-filespec]][, ...]
  2500.  
  2501. The SEND subcommand causes a file or file group to be sent from  MUSIC  to  the
  2502. Kermit  on  the other system.  Kermit-MUSIC will remove any code prefix for the
  2503. file header of the outgoing file.    The  filespec  may  contain  the  wildcard
  2504. characters  "*" or "?".  If it does, then all matching files will be sent.  For
  2505. details on the options, see the chapter on Kermit-370.  There must be no blanks
  2506. between the filespec and the options, if any.
  2507.  
  2508. The foreign-filespec, if any, is used for the file header of the outgoing file,
  2509. replacing the usual filename copied from the MUSIC filespec.  If wildcards  are
  2510. present in the filespec, then no foreign-filespec should be specified.
  2511.  
  2512. Trailing  blanks  in  a  text  file with RECFM F are deemed superfluous and are
  2513. stripped off when Kermit-MUSIC downloads the file.   In  order  to  treat  such
  2514. blanks as significant, you must convert the record format to V.
  2515.  
  2516.  
  2517.                               THE SET SUBCOMMAND
  2518.  
  2519. Syntax: SET parameter [value]
  2520.  
  2521. The  SET subcommand establishes or modifies various parameters controlling file
  2522. transfers.  The following SET parameters are available in Kermit-MUSIC, but not
  2523. in Kermit-370 in general:
  2524. DELIM               Line delimiter for entering multiple commands.
  2525. DESTINATION         Default Code.
  2526. FILE
  2527.   LRECL             Logical Record length for incoming file.
  2528.   RECFM             Record format for incoming files.
  2529.  
  2530.  
  2531. SET DELIM
  2532.  
  2533. Syntax: SET DELIM [letter]
  2534.  
  2535. This  sets  (or clears) a command line delimiter for interactive Kermit subcom-
  2536. mands.  Each occurrence of the delimiter character in the command  buffer  read
  2537. from  the  terminal  is  treated as the start of a new subcommand.  The initial
  2538. value is a blank, i.e., no delimiter, but it can be  set  in  one  of  the  in-
  2539. itialization  files and thereby be used in parsing the initial command-line ar-
  2540. guments.
  2541.  
  2542.  
  2543. SET DESTINATION
  2544.  
  2545. Syntax: SET DESTINATION code
  2546.  
  2547. This subcommand is equivalent to the CWD subcommand (q.v.).
  2548.  
  2549.  
  2550. SET FILE LRECL
  2551.  
  2552. Syntax: SET FILE LRECL number
  2553.  
  2554. This sets the logical record length for incoming files to a number  from  1  to
  2555. 32767  (32K-1).   This variable is used only for fixed format and binary files.
  2556. The default is 80.
  2557.  
  2558.  
  2559. SET FILE RECFM
  2560.  
  2561. Syntax: SET FILE RECFM option
  2562.  
  2563. This subcommand sets the record format  to  use  for  incoming  files.    Valid
  2564. options  are  "Fixed"  and  "Variable" (the default).  Fixed-format records are
  2565. padded, folded, or truncated, as needed, to the current LRECL.  Note: these two
  2566. formats  correspond to FC and VC in standard MUSIC nomenclature.  MUSIC formats
  2567. F, V, and U are not supported.
  2568.  
  2569.  
  2570.                              THE SPACE SUBCOMMAND
  2571.  
  2572. Syntax: SPACE
  2573.  
  2574. This subcommand displays the storage allocation  on  the  default  code.    The
  2575. available  space  is calculated by subtracting the current allocated space from
  2576. the total space available to the user's code.
  2577.  
  2578.  
  2579. 2.4. How to build an executable version of Kermit-MUSIC
  2580.  
  2581. Before attempting to build Kermit-MUSIC, look in the Kermit distribution  under
  2582. IKMKER  for  an  installation  document,  as well as "beware", help, and update
  2583. files, and read them first.  They will probably  contain  information  that  is
  2584. more current and more detailed than what you see here.
  2585.  
  2586. Kermit-MUSIC  consists  at  present  of  a  few  small jobs that (a) build GUPI
  2587. (Generic Update Program), (b) use GUPI to apply the current fixes to  the  base
  2588. code, and (c) assemble and link the updated Kermit source.  The source for Ker-
  2589. mit and GUPI itself is in many pieces, some generic  for  Kermit-370  and  some
  2590. specific  to MUSIC.  All the necessary pieces are sequenced in columns 73-80 so
  2591. that the numbers form a strictly increasing sequence when the pieces  are  cor-
  2592. rectly  "pasted"  together.   It is important to preserve the original sequence
  2593. numbers so that updates can be applied to the source.
  2594.  
  2595. To create a runnable version:
  2596.  
  2597.    1. Collect the following "ASM" files from the Kermit distribution  onto
  2598.       the  code  $KRM  with RECFM FC and LRECL 80: IK0DOC, IK0MAC, IKMMAC,
  2599.       IK0DEF, IK0MAI, IK0COM, IK0CMD, optionally IK0KAN,  IKMUTL,  IK0PRO,
  2600.       IK0GUP, and IKMGUP.  The files must have an extension of ".S".
  2601.  
  2602.    2. Assemble  and  link  the  Generic  Update  Program  GUPI,  producing
  2603.       $KRM:GUPI.LMOD.  Before assembling the GUPI program, you must change
  2604.       the IK0GUP module.  Edit the file $KRM:IK0GUP.S and convert all COPY
  2605.       pseudo-instructions into macro invocations.  This is easily achieved
  2606.       by  removing the word "COPY" from in front of the copy block's name.
  2607.       There are only 5 occurences of this and they are all in  column  10.
  2608.       The  source  for  GUPI  consists  of the combination IK0MAC, IKMMAC,
  2609.       IKMGUP, and IK0GUP.
  2610.  
  2611.    3. Build the base Kermit source so that you can apply the modifications
  2612.       to  it.  Merge the source files in the order IK0DOC, IK0MAC, IKMMAC,
  2613.       IK0DEF, IK0MAI, IK0COM, IK0CMD, IKMUTL, IK0PRO, and save the  result
  2614.       as $KRM:KERMIT.BASE.S.
  2615.  
  2616.    4. Apply  the  updates  using  GUPI.    Note: this operation requires a
  2617.       region of at least 1024K.  The  following  command  will  apply  the
  2618.       fixes  to the source module $KRM:KERMIT.BASE.S using the update file
  2619.       $KRM:IKMKER.UPD and save the updated source in $KRM:KERMIT.S.
  2620.           GUPI $KRM:KERMIT.BASE.S $KRM:IKMKER.UPD $KRM:KERMIT.S
  2621.  
  2622.    5. Assemble the Kermit source and link the object  deck  together  with
  2623.       MATCH and MFINDX to produce $KRM:KERMIT.LMOD.
  2624.  
  2625.    6. Save  the  following jobstream in the file $KRM:KERMIT This will ex-
  2626.       ecute the KERMIT program with the proper system parameters.
  2627.  
  2628.         /SYS NOPRINT,REGION=256
  2629.         /FILE LMOD N($KRM:KERMIT.LMOD) SHR
  2630.         /LOAD XMON
  2631.         KERMIT
  2632.  
  2633.    7. Kermit-MUSIC requries the LSCAN  privilege  since  it  does  a  save
  2634.       library  scan  directly.    You must modify either the system module
  2635.       LOOKUP or the macro invoked by LOOKUP called  $MCM:USERTBL.M.    Add
  2636.       the line
  2637.  
  2638.           FILNAM '$KRM:KERMIT',(LSCAN,0)
  2639.  
  2640.       to  either  of the two files.  Reassemble the module LOOKUP and make
  2641.       sure that the new object deck is used when rebuilding  the  nucleus.
  2642.       If  you do not give Kermit this privilege, the program will abend on
  2643.       user codes that do not have LSCAN.
  2644.  
  2645. Since Kermit-MUSIC drives  the  I/O  directly  for  both  "TTY"  and  "SERIES1"
  2646. devices,   your   site's   ASCII/EBCDIC  translation  tables  will  not  affect
  2647. Kermit-MUSIC in file transfer mode.
  2648.  
  2649.  
  2650. 2.5. What's New
  2651.  
  2652. Below is a list of the MUSIC-specific updates in Version 4.3.0 of  Kermit-MUSIC
  2653. added  since  the previous major release, Version 4.2, in March of 1990.  For a
  2654. list of generic additions, see the Kermit-370 chapter.
  2655.  
  2656.    1. Multiple Kermit subcommands specifiable on the MUSIC command line if
  2657.       the INIT file defines a delimiter.
  2658.  
  2659.    2. Support for time tags for files being sent.
  2660.  
  2661.  
  2662. 2.6. What's Missing
  2663.  
  2664. Work on Kermit-MUSIC will continue.  Features that need to be improved or added
  2665. include:
  2666.  
  2667.    - Allow timeouts so Kermit-MUSIC does not wait forever if a packet does
  2668.      not  arrive in a timely fashion.  This is not possible under MUSIC at
  2669.      present for I/O through a protocol converter.
  2670.  
  2671.    - Implement file archiving.
  2672.  
  2673.    - Support execution of Music commands from Kermit or the remote Kermit.
  2674.  
  2675.    - Add a SET REPEAT subcommand.
  2676.  
  2677.    - Support subdirectories  and  userids  longer  than  four  characters.
  2678.      There  is  already  an update for this support, but it requires MUSIC
  2679.      2.4 and has not been tested yet.   See  the  "beware"  file  for  the
  2680.      latest information.
  2681.  
  2682. Anyone interested in working on these or other improvements should first get in
  2683. touch with the Center for Computing Activities at Columbia University  to  find
  2684. out if someone else has already begun a similar project (and, if so, who).
  2685. Index
  2686.  
  2687.  
  2688.           3174   1, 5
  2689.           3708   5
  2690.  
  2691.           Alternate lines   7
  2692.           Appending   6
  2693.           Arabic   1, 8
  2694.           ASCII-to-EBCDIC   5
  2695.           Attributes.   See   File   at-
  2696.                   tributes
  2697.  
  2698.           Batch jobs   3
  2699.           Binary files   1, 4, 6, 7
  2700.           Blanks
  2701.              preserving trailing   7, 13
  2702.              stripping   1, 7
  2703.              trailing   1, 7
  2704.           BLKSIZE   1
  2705.           Block check   5
  2706.  
  2707.           Cancelling a file transfer   4
  2708.           Character sets   1, 6, 8
  2709.           CICS   6
  2710.           CMS   6
  2711.           Code pages   1
  2712.                See also   Character sets
  2713.           Collision. See  Filename  col-
  2714.                   lision
  2715.           Command echoing   7, 9
  2716.           Command prefix   3, 4, 7
  2717.           Completion codes   10
  2718.                See also   Error codes
  2719.           Control characters   5, 9
  2720.           Controller   5
  2721.           CRLF   1, 7
  2722.           CSW   6
  2723.           CWD   13
  2724.           Cyrillic   1, 6, 8
  2725.  
  2726.           Debugging   5
  2727.           Default Code   12, 13
  2728.           DIRECTORY   13
  2729.           Discarding files   6, 7, 11
  2730.                See also   DELETE
  2731.           DOS-4   1
  2732.           Dumping storage   5
  2733.  
  2734.           EBCDIC-to-ASCII   5
  2735.           ECHO   3
  2736.                See  also   Command echo-
  2737.                   ing
  2738.           Eighth-bit prefix   8
  2739.           Electronic mail   3
  2740.           End of file   6
  2741.           Error codes   10, 12
  2742.           Extended ASCII   5
  2743.  
  2744.           File attributes   1, 5, 9
  2745.           File disposition   3
  2746.           File renaming   6
  2747.           File truncation   6
  2748.           Filename collision   6, 13
  2749.           Flow control   9, 12
  2750.           Folding   4, 6, 13
  2751.           Foreign   3, 7
  2752.           Front end   1
  2753.           Full screen   4, 9
  2754.  
  2755.           GET   3
  2756.           GIVE   3
  2757.           Greek   1, 8
  2758.  
  2759.           Handshake   7, 9, 12
  2760.           Hebrew   1, 8
  2761.           HELP   13
  2762.           Host commands   4, 7
  2763.  
  2764.           IBM   1, 12
  2765.           Incomplete files   4, 7
  2766.           Initialization files    1,  2,
  2767.                   3, 6, 8, 12, 14
  2768.  
  2769.           Kanji   1, 6, 8
  2770.           Katakana   1, 8
  2771.  
  2772.           Languages   1
  2773.           Line delimiter   13
  2774.           Local   3
  2775.           LOCAL-ECHO   9
  2776.           Long packets   4, 8, 9
  2777.           LRECL   1, 7
  2778.  
  2779.           Mail   3
  2780.                See  also      Electronic
  2781.                   mail
  2782.           Margins   7
  2783.           MTS   1
  2784.           MUSIC   6
  2785.           MUSIC/SP   12
  2786.  
  2787.           Optimum packet size   4, 7
  2788.           Overwriting files   6
  2789.                See also   Filename  col-
  2790.                   lision
  2791.  
  2792.           Packet size   4, 8
  2793.           Parity   8, 9
  2794.           Prefix.      See      Command,
  2795.                   Eighth-bit, Foreign
  2796.           Prefixing   5
  2797.           Printing files   3
  2798.           Prompt   7
  2799.  
  2800.           Quote. See Prefix
  2801.  
  2802.           Raw transmission   3, 9
  2803.           RECEIVE   3, 4, 13
  2804.           RECFM   1
  2805.           Records   1
  2806.           Remote   3
  2807.           RENAME   6
  2808.           Renaming files   6
  2809.                See also   File renaming
  2810.           ROSCOE   6
  2811.  
  2812.           Screen refresh   9
  2813.           SEND   3, 4, 13
  2814.           SEND delay   6
  2815.           Series/1   1, 5, 12
  2816.           SERVER   4
  2817.           SET   4, 13
  2818.           SHOW   9
  2819.           SNA   1, 5
  2820.           SPACE   13
  2821.           STATUS   9
  2822.           STOP   9
  2823.           Stripping blanks. See Blanks
  2824.           Subcommand prefix. See Command
  2825.                   prefix
  2826.           Submitting jobs   3
  2827.                See also   Batch jobs
  2828.  
  2829.           Tabs   7
  2830.           TAKE   9
  2831.           TDUMP   9
  2832.           TEST   7
  2833.           TGET   6
  2834.           Thai   1
  2835.           Timeout   7, 9
  2836.           TPUT   6
  2837.           Tracing execution   5, 9
  2838.           Trailing blanks. See Blanks
  2839.           Transaction log   4, 9
  2840.           Translation   1, 2, 8, 14
  2841.           Translation tables   1, 3, 8
  2842.           Transparent mode   3, 9
  2843.           Truncation   4, 6, 13
  2844.                See  also      File trun-
  2845.                   cation
  2846.           TSO   6
  2847.           TTY   1, 5, 9, 12
  2848.           Type   4
  2849.  
  2850.           Warning   6
  2851.           Wildcards   12, 13
  2852.  
  2853.           XECHO   3
  2854.