The input and output built-in functions allow you to determine the current state of a file.
Function | Description |
---|---|
COUNT | Returns the number of data items transmitted during the last GET or PUT. |
ENDFILE | Indicates if a file is open and end-of-file has been reached for it. |
FILEDDINT | Returns a value for the designated file attribute. |
FILEDDTEST | Returns the value 1 if the designated attribute applies to the specified file. |
FILEDDWORD | Returns a character string for the designated file attribute. |
FILEID | Returns a system token value for a file. |
FILENEW | Returns a FILE variable that points to a new file constant in automatic storage. |
FILEOPEN | Indicates if a file is open. |
FILEREAD | Reads from a file. |
FILESEEK | Changes the current file position to a new location. |
FILETELL | Returns a value indicating the current position of a file. |
FILEWRITE | Writes to a file. |
LINENO | Returns the current line number associated with a print file. |
ONSUBCODE | Returns an integer value that gives additional information about certain I/O, JSON, or conversion errors. |
ONSUBCODE2 | Returns an integer value that gives additional information about certain I/O errors. |
PAGENO | Returns the current page number associated with a print file. |
SAMEKEY | Indicates if a record is followed by another with the same key. |