COMTRAN Reconstruction

J28-6169 · January 1962

02.07.04

PDF page 55 of 221. Download the scanned PDF

The page as scanned

The scan of PDF page 55 of J28-6169
Select the scan to open it at full size.

The text read off it

[02.07.04]

7. The GET Command

The GET command makes available for processing the next record of an open file. If the file is not open and a GET command is given, the end of file exit is taken. No error message is given. The Commercial Translator language contains two forms of the verb:

GET RECORD FROM file.name
GET record.name

The verb is described incorrectly in the Commercial Translator General Information manual and the definition given in the last paragraph on page 39 of the manual should be replaced with:

"The first form of the command assumes that the system has at its disposal sufficient information to obtain the next record. When using a GET of the second form the programmer supplies the system with the name of the next record in the file. Regardless of what record is next in the file, it will be obtained by the GET in accordance with the characteristics associated with the specified 'record.name'. The 'record.name' must be associated with only one input file in the Environment Description."

In order to use the form 'GET RECORD FROM file.name' in 709/7090 Commercial Translator programs at least one of the following conditions must exist:

a) All records in the file are of a fixed and equal length.

b) The beginning of each record in the file corresponds with the beginning of a tape block (indicated by the BEGIN option of the Environment Description FILE card).

c) All records in the file are in the standard variable length form.

d) Each tape block in the file consists of one complete record whose length is equal to the length of the block (signalled by the Environment BLOCK CONTROL).

e) All records in the file which will be obtained by this form of the command are included in a PATTERN in the Environment Description.

C. Usage of the GET Command

1. Factors Affecting Choice and Use of Locate or Transmit Mode

a) File characteristics and processing requirements

A GET command instructs the system to make available for processing