Numeric Variables (DISK I/0)


 

All Numeric Variables (under normal I/O operation) are read or written as follows. This may be modified with the list controls defined later in this chapter.

 

Input

  1. The information is read from the disk starting at the file's current position (based on the type of READ instruction).

  2. Data is moved into the variable beginning with the first physical position of the variable and continuing through the Physical Length.

  3. Other than valid numeric data, only leading spaces are converted to zeros. Any other deviation results in a FORMAT error (F01).

  4. A blank field (all spaces) will result in a variable value of zero.

  5. If the End Of Record (EOR) is reached before the variable is full, the remainder of the variable is filled with zeros.

  6. If the EOR is reached before the list is exhausted, remaining variables are set to zero.

  7. ARRAY variables that have no index specified are treated as multiple fields and all elements are processed before proceeding to the next item in the list.

 

Output

  1. Characters are transferred, beginning with the first physical character and continuing through the Physical Length.

  2. The first character is written at the current position within the file.

  3. ARRAY variables that have no index specified are treated as multiple fields and all elements are written before proceeding to the next item in the list.

 

 

See Also: Character String Variables, Disk I/O Instructions

 



PL/B Language Reference Character String Variables (DISK I/O) Partial I/O