Monday, 28 July 2014

COBOL Open Statement.

The OPEN statement initiates the processing of files. The successful execution of an OPEN statement determines the availability of the file for processing. A file is available if it is physically present and is recognised by the input-output control system.

The successful execution of the OPEN statement makes the associated record area available to the program; it does not obtain or release the first data record. If the FILE STATUS clause is specified in the FILE-CONTROL entry, the associated status key is updated when the OPEN statement is executed.

Format : 

Example : 

Created with Artisteer

No comments:

Post a comment