home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / old / misc / prime / primek.doc < prev    next >
Text File  |  2020-01-01  |  12KB  |  335 lines

  1. PRIME KERMIT Documentatino
  2.  
  3. Contents                                                     i
  4.  
  5.  
  6.  CONTENTS
  7.  
  8. Transferring files between the Prime and your PC  . . . . .  1
  9.  
  10.  1     Running Kermit on the Prime . . . . . . . . . . . . .  1
  11.        2     File Naming Conventions . . . . . . . . . . . .  3
  12.        3     Default Kermit-R19 SET Parameters . . . . . . .  3
  13.  4     Kermit Commands Available for the Prime . . . . . . .  3
  14.        5     SERVER Command  . . . . . . . . . . . . . . . .  3
  15.        6     INIT Command  . . . . . . . . . . . . . . . . .  4
  16.        7     PORTFILE Routine  . . . . . . . . . . . . . . .  4
  17.        8     Sample Session  . . . . . . . . . . . . . . . .  5
  18. ii
  19.  
  20.  
  21.  TRANSFERRING FILES BETWEEN THE PRIME AND YOUR PC
  22.  
  23.  
  24.  
  25.  Normally, when you use your PC, you are "talking" directly to
  26.  it; your commands are interpreted directly by the operating
  27.  system or by some program, such as an editor, a text
  28.  formatter, or SPSS/PC.  Kermit is a means for connecting two
  29.  computers through their terminal (TTY) ports, tricking one
  30.  computer (or both) into acting as though the other is a
  31.  terminal.  Once two computers are connected in this way,
  32.  cooperating programs can be run on each computer to achieve
  33.  the desired communications by means of a communication
  34.  protocol.
  35.  
  36.     Kermit embodies a set of rules for transferring files
  37.  reliably between computers.  In general, one computer is a
  38.  large system (the mainframe Prime acts as a host, and contains
  39.  many terminals) and the other is a personal computer (PC).
  40.  The host believes that the PC is an ordinary terminal.  In
  41.  order for the Kermit protocol to occur, a Kermit program must
  42.  be running on each end of the communication line--one on the
  43.  Prime as host, one on the PC.
  44.  
  45.     This documentation supplements the documentation in
  46.  SPSS/PC.  You should read that documentation first.
  47.  
  48.     Tranfer of SPSS portable system files requires the use of
  49.  the PORTFILE command described below.
  50.  
  51. 1  Running Kermit on the Prime
  52.  
  53. The Prime version of Kermit was developed under Prime REV19
  54.  and issues the prompt KERMIT-R19>.  It has run successfully
  55.  under REV18, also.  Kermit-R19 does not accept any
  56.  abbreviations for commands; you must type command names in
  57.  full.  It does not give guide words or respond to ? with
  58.  information on what may be done next.  Kermit-R19 does not
  59.  accept tree names.  It searches for and places files in the
  60.  currently attached directory.  If you want to send or receive
  61.  files from another directory, exit from Kermit, attach to the
  62.  desired UFD, and restart Kermit-R19.
  63.  
  64.     Kermit lets you use your PC as a remote Prime terminal,
  65.  where you issue PRIMOS commands; as a "dumb" terminal which
  66.  accepts Kermit-R19 and Kermit-PC commands; and as a regular
  67.  PC.  You can always verify which operating system or Kermit
  68.  you are at by typing a carriage return and examining the
  69.  prompt.  The PRIMOS prompt does not appear when you transfer
  70.  from the PC to PRIMOS.
  71. 2
  72.  
  73.  
  74.   1  First you start Kermit on the PC by typing
  75.  
  76.             KERMIT
  77.  
  78.     Once you have activated PC Kermit, use the STATUS command
  79.      to make sure that parity is set to "MARK," the back-arrow
  80.      is set to "backspace," and that the baud rate is correct
  81.      for the modem.  If these parameters have to be changed,
  82.      use the Kermit-PC SET command.
  83.  
  84.  2  Dial the number required to activate a port on the
  85.      mainframe Prime.  Connect the link by typing "C" (for
  86.      CONNECT) on the PC.  Now the PC is functioning like a
  87.      remote terminal.
  88.  
  89.  3  Login normally to the Prime.  You may have to hit the
  90.      carriage return a couple of times to get "LOGIN PLEASE"
  91.      message.
  92.  
  93.  4  Check to make sure your kill character is a non-printing
  94.      character.  (On the Prime, the kill character indicates a
  95.      line delete.)  You must change the default kill character
  96.      from a question mark (?)  to some non-printing character
  97.      (such as CTRL-X), so that Kermit does not interpret it as
  98.      a signal to erase the line.
  99.  
  100.  5  Attach to the directory in which you want to send or
  101.      receive files.  If you are sending SPSS portable files,
  102.      they must be processed with PORTFILE prior to sending them
  103.      to the PC.
  104.  
  105.  6  Start-up Prime Kermit.  At some sites this is done with
  106.      the command
  107.  
  108.            KERMIT
  109.  
  110.     Check with your local systems staff to see how this is
  111.      done at your site.
  112.  
  113.  7  Set up the Prime Kermit environment and perform file
  114.      transfers using the commands listed in the PC Kermit
  115.      Documentation or use the SERVER command described below.
  116.  
  117.  8  If you have sent SPSS portable files from the PC to the
  118.      Prime, be sure to run them through PORTFILE prior to
  119.      reading them with the SPSS-X IMPORT command.  PORTFILE is
  120.      run on Prime Kermit.
  121.  
  122.  9  Exit from Prime Kermit.
  123.  
  124. 10  LOGOUT from Prime.
  125.  
  126. 11  Exit from PC Kermit
  127. Contents                                                     3
  128.  
  129.  2  File Naming Conventions
  130.  
  131. Kermit makes every attempt to retain the names of transferred
  132.  files.  The file naming conventions on the PC allow filenames
  133.  of eight characters followed by a three character extension.
  134.  PRIMOS uses filenames of up to 32 characters, including
  135.  suffixes.  When you send files "down" to the PC or "up" to the
  136.  Prime, some file names or extensions may be truncated if the
  137.  names are too long or changed by Kermit to prevent filename
  138.  conflicts and conform to naming conventions.  Check your
  139.  directory or UFD to see if any names have changed.
  140.  
  141. 3  Default Kermit-R19 SET Parameters
  142.  
  143. The default SET parameters for Kermit-R19 (shown with the SHOW
  144.  ALL command) are
  145.  
  146.             Delay (seconds) before sending 1st packet........     5
  147.              File Type to send/receive........................ASCII
  148.              Number pad chars to send.........................     0
  149.              Pad character to send............................200 (octal)
  150.              Quote character to receive.......................'#'
  151.              8-bit Quoting character desired (good
  152.              only if the file type is BINARY).................'N'
  153.  
  154. These parameters can be changed using the SET command,
  155.  described in the SPSS/PC Kermit documentation.  You do not
  156.  have to make any changes to transfer portable files.  Portable
  157.  files must be sent as ASCII files.
  158.  
  159.     The Kermit-PC STATUS command lists other available
  160.  options, including the baud rate and parity settings.
  161.  
  162. 4  Kermit Commands Available for the Prime
  163.  
  164. Kermit on the Prime always issues the prompt, KERMIT-R19>.  In
  165.  response to this prompt, you can issue commands which give
  166.  help, show current parameter settings, and transfer files.
  167.  These commands are described in the SPSS/PC Kermit
  168.  Documentation.
  169.  
  170.     The Prime implementation of Kermit supports the use of the
  171.  SERVER command and allows you to set parameters from an
  172.  external file with the INIT command.
  173.  
  174. 5  SERVER Command
  175.  
  176. The SERVER command saves you from moving back and forth
  177.  between Kermit-PC and Kermit-R19.  Once you have established
  178.  the connection between your PC and the Prime, you type SERVER
  179.  at Kermit-R19, reconnect to Kermit-PC and then issue commands
  180.  that transfer files.
  181. 4
  182.  
  183.   1  Follow steps 1 through 7 above.
  184.  
  185.  2  Issue the SERVER command by typing SERVER.
  186.  
  187.  3  Reconnect to Kermit-PC by typing CTRL-] c
  188.  
  189.  4  Issue commands recognized by the server described below.
  190.  
  191. The available commands for the SERVER are
  192.  
  193. SEND     transfers files from the current PC directory to the
  194.           currently attached Prime directory.  SEND takes a
  195.           filename as the argument or you can send groups of
  196.           files using the PC wildcard conventions.
  197.  
  198. RECEIVE  transfers files from the currently attached Prime
  199.           directory to the current PC directory.  RECEIVE takes
  200.           a filename as the argument or you can receive groups
  201.           of files using Prime wildcard conventions.
  202.  
  203. FINISH   exits from Kermit-R19 and returns control to PRIMOS.
  204.           You should re-connect to the Prime and perform
  205.           additional operations or LOGOUT.
  206.  
  207. BYE      (alias LOGOUT) exits from Kermit-R19 and LOGOUT from
  208.           Prime.
  209.  
  210. 6  INIT Command
  211.  
  212. The INIT command uses a file containing SET parameters to
  213.  establish the Kermit environment.  You build this file on the
  214.  Prime using an editor.  The file serves a command input (COMI)
  215.  file.  The INIT command is used at the Kermit-R19 level and
  216.  executes the SET commands contained in the file.  The INIT
  217.  command takes the following form
  218.  
  219.             INIT filename
  220.  
  221. The file contains commands that are available for Kermit-R19.
  222.  After establishing the Kermit-R19 environment with SET
  223.  commands, you can issue PORTFILE (with the appropriate
  224.  responses), SHOW, or HELP commands.  If you issue the SERVER,
  225.  SEND or RECEIVE command, it must be the last command in the
  226.  INIT file.  The first SERVER, SEND, or RECEIVE command
  227.  encountered is executed and expects a response from Kermit-PC.
  228.  
  229. 7  PORTFILE Routine
  230.  
  231. The PORTFILE routine run within Kermit-R19 is used to
  232.  translate characters contained in SPSS portable files
  233.  transferred by Kermit between your PC and the Prime.  The
  234.  current portable file configuration forces Kermit to replace
  235.  some characters which are not interpreted by IMPORT and
  236. Contents                                                     5
  237.  
  238.  EXPORT.  The PORTFILE routine takes care of any problematic
  239.  characters.  PORTFILE is run on the Prime prior to sending a
  240.  portable file to the PC or after receiving a portable file
  241.  from the PC.  You must not run data or command files through
  242.  the PORTFILE routine.
  243.  
  244.     PORTFILE is an interactive routine which prompts you for
  245.  the type of file, the name of the input file, and a name for
  246.  the translated file.  PORTFILE queries you until it has all
  247.  the information it needs to perform the translation.  If one
  248.  of the file names already exists, PORTFILE asks if you want to
  249.  overwrite the file.  You cannot use the same name for the
  250.  input file and the converted version.  A run to translate a
  251.  portable file received from the PC looks like
  252.  
  253.             Are you converting a file to send to a PC?  NO
  254.              Are you converting a file received from a PC? YES
  255.              Name of file to convert: almanac.ker
  256.              Name for converted file: almanac.kermxfil
  257.              File already exists. Do you wish to overwrite? NO
  258.              Name for converted file: almanac.kxfil
  259.  
  260. The file is then converted and both files appear in the
  261.  current Prime directory.
  262.  
  263. 8  Sample Session
  264.  
  265. In this sample session, a portable file is being sent from the
  266.  PC to the Prime using the SERVER command and then translating
  267.  the file using the PORTFILE command.  Assume that steps one
  268.  through six have been followed and that the Kermit-R19
  269.  environment has been established.
  270.  
  271.     At Kermit-R19 level, type
  272.  
  273.             SERVER
  274.  
  275. To return to Kermit-PC, type
  276.  
  277.             CTRL-] C
  278.  
  279. Now you issue one of the commands available with the server to
  280.  send or receive files.  To send the portable file, type
  281.  
  282.             SEND ALMANAC.KER
  283.  
  284. You do not have to receive the file.  The SERVER operates at
  285.  the Kermit-R19 level and receives the file.  You can send
  286.  groups of files using PC-DOS wildcard conventions.  To exit
  287.  from the SERVER, type
  288.  
  289.             FINISH
  290. 6
  291.  
  292.  The FINISH command exits from Kermit-R19.  To reconnect to
  293.  PRIMOS, type
  294.  
  295.             C
  296.  
  297. Now your PC is acting as a terminal connected to the Prime.
  298.  Since a portable file has been sent, the Kermit-R19 PORTFILE
  299.  routine must be executed.  To enter Kermit-R19, type
  300.  
  301.             KERMIT
  302.  
  303. To get to the translation routine, type
  304.  
  305.             PORTFILE
  306.  
  307. The PORTFILE routine asks questions about the type of
  308.  conversion, the name of the input file, and the name of the
  309.  output file.  You must answer each question.
  310.  
  311.             Are you converting a file to send to a PC?  n
  312.              Are you converting a file received from a PC? y
  313.              Name of file to convert: almanac.ker
  314.              Name for converted file: almanac.kxfil
  315.  
  316. When you use SPSS-X IMPORT commmand, the converted file,
  317.  almanac.kxfil, is used.
  318.  
  319. To leave Kermit-R19, type
  320.  
  321.             EXIT
  322.  
  323. You can continue to use your PC as a remote terminal to the
  324.  Prime or logout by typing
  325.  
  326.             LOGOUT
  327.  
  328. To return to Kermit-PC, type
  329.  
  330.             CTRL-] C
  331.  
  332. To exit from Kermit-PC and return control to DOS, type
  333.  
  334.             EXIT
  335.