RJS File Transfer
The <pathname> defined earlier is the means whereby the user specifies the location and attributes of his source, print and punch files. The means of determining a file's location have been previously discussed; this section explains the controls the user has over data attributes.
The parameter <attributes> specifies the type of carriage control and the mode of transfer. For the case of transfer over a simplex connection, this parameter has the following meanings:
- ':T' or ':TE' - TELNET-like carriage control. The data is a stream of characters with embedded carriage control bytes. Page eject is signaled by form feed, ASCII or EBCDIC decimal 12, new line by carriage return - line feed, ASCII l3-lO, EBCDIC 13-27. Multiple new line ('double spacing' or 'triple spacing') is indicated by multiple occurances of CR-LF.
- ':A' or ':AE' - ASA carriage control. The data is a series of fixed-length records, 81 characters on input, 133 on output, with the first character of each record an ASA carriage control character. The possible carriage control characters are as follows; '+' - no line advance before print (overprint), ' ' - one line advance (single space), '0' - two lines advance (double space), '-' - three lines advance (triple space), and '1' - page eject. Whatever carriage control character appears on input is ignored.
- ':N' or ':NE' - no carriage control. The data is a series of fixed length records, 80 characters on input, 132 on output. Any carriage control generated on output is discarded before transmission.
When file transfer takes place by means of FTP, the interpretation of the <attributes> parameter is somewhat different. In this case the meanings are as follows:
- ':T' or ':TE' - TELNET-like carriage control. The data has the same format as for the simplex connection, and is transferred in stream mode, file structure, and either ASCII ('A') or EBCDIC ('E') type.
- ':A' or ':AE' - ASA carriage control. Data is transferred in blocked mode, record structure, and either ASCII print ('P') or EBCDIC print ('F') type. The first character of every record is the ASA carriage control character described above.
- ':N' or ':NE' - no carriage control. Data is transferred in blocked mode, record structure, and either ASCII ('A') or EBCDIC ('E') type. As for the simplex connection, no carriage control information is present.
In order to effect the FTP file transfer, RJS issues the following FTP commands (in the given order): USER (if access user name has been specified), PASS (if password specified), ACCT (if account specified), BYTE (specifying bytesize of 8), ALLO (if outputting file), TYPE, STRU, MODE, SOCK, and APPE or RETR.