COMTRAN Reconstruction

J28-6169 · January 1962

90.01.02

PDF page 134 of 221. Download the scanned PDF

The page as scanned

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

The text read off it

[90.01.02]

v. INCLUDE verb

Mechanization of the INCLUDE verb has been deferred, and consequently no library facilities are currently available.

vi Indexing (including the DO verb)

A repeated usage of a subscript name should be avoided when possible. When a subscript changes value, all positional indicators containing that subscript will be re-evaluated. Use of the same subscript names for multiple purposes generally causes unnecessary calculations in the object program, but it will not be incorrect.

The dimensions of an array must be set before calculation of subscript values associated with the array is performed. Presently, failure to observe this restriction causes invalid object code.

For example, the following sequence of instructions is incorrect:

SET I = 3, SET J = 5.
SET Q = 10.                    (where the data description shows Q
                                 occurrences of A)
MOVE A (I,J) TO R.

In this case, the positional indicator for A(I,J) is computed when I and J are set and not updated when Q is set. The system presently causes all records containing arrays to be transmitted. However, care should be taken when an array follows a variable length array. In this case, the positional indicator will not be updated when the base is determined. Therefore, the subscripts must be set prior to making a subscripted reference to the array.

A DO section will always be performed at least once regardless of the values of the loop control variables.

No object time check is made to insure that subscript references conform to the limits specified by the array dimensions in the Data Description.

vii MOVE verb

Figurative constants may not be moved to variable length arrays; they may, however, be moved to fixed length arrays or to array elements.