FILEID

FILEID returns a size_t 1 value that is the system token for a PL/I file constant or variable.

Read syntax diagramSkip visual syntax diagram
>>-FILEID(x)---------------------------------------------------><

x
File reference

This token should not be used for any purpose that could be accomplished by a PL/I statement.

On z/OS, the token holds the address of the DCB associated with a RECORD or STREAM file or of the ACB associated with a VSAM RECORD file. The token is not valid for other files.

Note: The DCB or ACB address is provided so that applications can read the DCB or ACB. The DCB and ACB must not be altered.

The ERROR condition with oncode 1010 is raised when the file is not open.






Published: 23 December 2018