skip to main content

Library Routines : I$IO : OPEN-FUNCTION

OPEN-FUNCTION
This function opens an existing indexed file.
If it is successful, the value in RETURN-CODE should be moved to a data item that is USAGE HANDLE. This data item is passed as the open file handle to the other file handling functions.
If it fails, RETURN-CODE is set to ZERO.
After the file is opened, the primary key is set as the current key of reference and it is positioned at the beginning of the file.
This function only opens already existing files. If the file does not exist, the function fails, even when opening for output.
Syntax
 SET OPEN-FUNCTION TO TRUE
 CALL "I$IO" USING IO-FUNCTION
            GIVING returnCode
Parameters:
Return code:
returnCode can be any signed numeric data item and provides additional information:

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