READ File-Name-1 [NEXT ] RECORD[PREVIOUS][BACKWARD][KEPT ][IGNORE][WAIT][ INTO Identifier-1 ][ SIZE Identifier-2 ][END-READ]
READ File-Name-1 RECORD[KEPT ][IGNORE][WAIT][ INTO Identifier-1 ][ KEY IS Record-Key-Name-1 ][END-READ]
1.
a lock is not acquired on the read record, unless iscobol.file.index.read_lock_test (boolean) * is set to true in the configuration. In such case, a lock is acquired just to test the record status, then it’s immediately released. It is supported also by JIsam but, in a thin client or file server environment, it works only if iscobol.file.lock_manager * is set to "com.iscobol.as.locking.InternalLockManager".
B. NOTE - For OPEN, this means that you normally get the first record in the file for sequential or relative and normally get an at end condition for indexed.If a record is found that satisfies this general rule and other general rules for the READ statement, the record is made available in the record area associated with file-name-1 unless the RELATIVE KEY clause is specified for file-name-1 and the number of significant digits in the relative record number of the selected record is larger than the size of the relative key data item. In that case, the I-O status value associated with file-name-1 is set based on your iscobol.file.status * setting, the at end condition exists, the file position indicator is set to indicate that no next or previous logical record exists, and execution proceeds.NOTE - Except in the case of an indexed file, the record made available may have a length of zero.If no record is found that satisfies the above rules, the file position indicator is set to indicate that no next or previous logical record exists, the I-O status value associated with file-name-1 is set based on your iscobol.file.status * setting, the at end condition exists, and execution proceeds.
A. The I-O status value associated with file-name-1 is set based on your iscobol.file.status * setting to indicate the at end condition.
19. The I-O status for the file connector referenced by file-name-1 is set based on your iscobol.file.status * setting if the execution of the READ statement is successful, an indexed file is being sequentially accessed, the key of reference is an alternate record key, and one of the following is true:
read customers next
read customers previous
read customers
read customers key cust-last-name
read customers into ws-first-customer
| Copyright (c) 2017 Veryant |
| Contact us |
|
Please share your comments on this manual or on any Veryant product documentation with the email button at the top left |