Skip to main content

RJE Commands over TELNET Connection

General Conventions​

  1. All commands will be contained in one input line terminated by the standard TELNET "crlf". The line may be of any length desired by the user (explicitly, not restricted to a physical terminal line width). The characters "cr" and "lf" will be ignored by the RJE-server except in the explicit order "crlf" and may be used as needed for local terminal control.

  2. All commands will begin with a recognized command name and may then contain recognized syntactic element strings and free-form variable strings (for userid, pathnames, etc.). Recognized words consist of alphanumeric strings (letters and digits) or punctuation. Recognized alphanumeric string elements must be separated from each other and from unrecognizable strings by at least one blank or a syntactically permitted punctuation. Other blanks may be used freely as desired before or after any syntactic element. The "=" after the command name in all commands except OUT and CHANGE are optional.

  3. Recognized alphanumeric strings may contain upper case letters or lower case letters in any mixture without syntactic differentiation. Unrecognizable strings will be used exactly as presented with full differentiation of upper and lower case input, unless the host finally using the string defines otherwise.

  4. There are two types of Unrecognizable strings: final and imbedded. Final strings appear as the last syntactic element of a command and are parsed as beginning with the next non-blank character of the input stream and continuing to the last non-blank character before the "crlf".

    Imbedded strings include "job-id" and "job-file-id" in the OUT, CHANGE, and ALTER commands. At present these fields will be left undelimitted since they must only be recognizable by the server host which hopefully can recognize its own job-ids and file-names.

SYNTAX: The following command descriptions are given in a BNF-like syntax. Parenthesized names are non-terminal syntactic elements which are expanded in succeeding syntactic equations. Each equation has the defined name on the left of the ::= and a set of alternative definitions, separated by slashes "/", on the right. The equations for (host-file) and (disp) use the characters "/" "( )" explicitly in their definitions. In these cases the quotes are not part of the definition, but surround literal text which is part.

USER​

USER = (user-id)

This command must be the first command over a new TELNET connection. As such, it initiates a "logon" sequence. The response to this command is either

a) User code in error.
b) Enter password (if usercode ok)
c) Log-on ok, proceed. (if no password required)

Another USER command may be sent by the User at any time to change Users. Further input will then be charged to the new user. A server may refuse to honor a new user command if it is not able to process it in its current stat (during input file transfer, for example), but the protocol permits the USER command at any time without altering previous activity. An incorrect subsequent USER command or its following PASS command are to be ignored with error response, leaving the original User logged-in.

It is permissable for a server to close the TELNET connection if the initial USER/PASS commands are not completed within a server specified time period.

It is not required or implied that the "logged-on" User be the user-id used for file transfer or job execution, but only identifies the submitter of the command stream. Servers will establish their own rules relating User-id with the job-execution-user for Job or Output alteration commands.

Successful "log-on" always clears any previous Input or Output default parameters (INID, etc.).

PASS​

PASS = (password)

This command immediately follows a USER command and completes the "log-on" procedure. Although a particular Server may not require a password and has already indicated "log-on ok" after the USER command, every Server must permit a PASS command (and possibly ignore it) and acknowledge it with a "log-on ok" if the log-on is completed.

BYE​

BYE

This command terminates a USER and if input transfer is not in progress, closes the TELNET connection. If input is in progress, the connection will remain open for result response and will then close. During the interim, a new USER command (and no other command) is acceptable.

An unexpected close on the TELNET connection will cause the server to take the effective action of an ABORT and BYE.

INID/INPASS​

INID = (user-id)
INPASS = (password)

The specified Userid and Password will be sent in the File Transfer request to retrieve the input file. These parameters are not used by the Server in any other way. If this command does not appear, then the USER/PASS parameters are used.

INPATH/INPUT​

INPATH = (pathname)
INPUT = (pathname)
INPUT

NOTE: The following syntax will also be used for output (pathname).

(pathname)::= (host-socket) / (host-file)
(host-socket)::= (host),(socket) / (socket)
no (host) part implies the User-site host
(host)::= (decimal-integer) / (standard-host-name)
(socket)::= (decimal-integer) / PORT (decimal-integer)
(decimal-integer) implies explicit socket, lower bit
will be set appropriately for the direction
PORT implies the specified port-sockets for a TIP
Tip-Socket = Port * 2**16 + (2 or 3)
(host-file)::= (host)(attributes)"/"(file-name)
(attributes)::= (empty) / : (transmission)(code)
(transmission)::= (empty) / T / A / N
(empty) implies default which is
N for Input files
A for output files
T specifies TELNET-like coding with imbedded "crlf"
for new-line, "ff" for new-page
N specifies FTP blocked transfer with record marks
but without other carriage-control
A specifies FTP blocked records with ASA carriage-
control (column 1 of image is forms control)
(code)::= (empty) / E
(empty) specifies NVT ASCII code
E specifies EBCDIC (TE not allowed)
(file-name)::= (any string recognized by the
FTP Server at the site of the file)

The (pathname) syntax is the general RJE mechanism for specifying a particular file source or destination for input or output. If the (host-socket) form is used then direct transfer will be made by the RJE-Server to the named socket using TELNET-like ASCII. If the (host-file) form is used then the RJE-server will call upon its local FTP-user process to do the actual transfer. The data stream in this mode is either TELNET-like ASCII or blocked records (which may use column 1 for ASA carriage-control). Although A mode is permitted on input (column 1 is deleted) the usual mode would be the default N. The output default A would supply carriage-control in the first character of each record ("blank"= single-space, "1"=new-page, etc.), while the optional N mode would transfer the data only (as to a card punch, etc.).

The (file-name) is an arbitrary Unrecognized string which is saved by RJE-server and sent back over FTP to the FTP-server to retrieve or store the appropriate files.

INPATH or INPUT commands first store the specified (pathname) if one is supplied, and then the INPUT command initiates input. The INPATH name may be used to specify a pathname for later input and the INPUT command without pathname will cause input to initiate over a previously specified pathname. An INPUT "crlf" command with no previous (pathname) specified is illegal.

ABORT​

ABORT

This command aborts any input retrieval in progress, discards already received records, and closes the retrieval connection.

Note: ABORT with parameters is an Output Transmission control.