OPEN [ EXCLUSIVE ]{OUTPUT} { File-name-1 [Lock-Option] (only with -CA option) }{I-O }{EXTEND}Where Sharing-Phrase is:
{ NO OTHER }{ READ ONLY }Where Lock-Option is:
{ OTHERS }{ READERS }{ WRITERS }{ UPDATERS }{ ALL }{ {WITH} {LOCK } }{FOR } {MASS-UPDATE}{BULK-ADDITION}
1.
8. During the execution of the OPEN statement when the file connector is matched with the physical file and the physical file exists, the attributes of the file connector as specified in the file control paragraph and the file description entry are compared with the fixed file attributes of the physical file. If the attributes don't match, a file attribute conflict condition occurs, the execution of the OPEN statement is unsuccessful, and the I-O status associated with file-name-1 is set based on your iscobol.file.status * setting. The implementor defines which of the fixed-file attributes are validated during the execution of the OPEN statement. The validation of fixed-file attributes may vary depending on the organization of the file.
12. If the I-O phrase is specified, the physical file shall support the input and output statements that are permitted for the organization of that file when opened in the I-O mode. If the physical file does not support those statements, the I-O status value for file-name-1 is set based on your iscobol.file.status * setting and the execution of the OPEN statement is unsuccessful. The successful execution of an OPEN statement with the I-O phrase sets the open mode of file connector referenced by file-name-1 to open in the I-O mode.
B.
ii.
iii.
iii.
21.
open input customers invoices purchase-ordersopen output rep-customers rep-invoicesopen i-o invoice-detail
| 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 |