FETCH/{PART,'filespec'|TXT,file#,'filespec'}[,IFERR,label:]
This statement retrieves a copy of either a part file or a text file.
Parameter |
Description |
PART |
Minor word that indicates that the file to be retrieved is a part file. |
TXT |
Minor word which indicates that the file to be retrieved is a text file. The file pointer is left on the last line of the file after it is retrieved. This can be an important consideration if you should try to read that file. |
file# |
The number of the scratch file into which the specified file is to be retrieved. Ten scratch file areas are available, therefore, the specified number must be between 1 and 10. The scratch file number is required for text files only. The file number cannot be used if the file is a part file.
|
'filespec' |
The filespec parameter is used to specify the name of the part or text file. The filespec is required for part or text files only. |
IFERR,label: |
Specifies a label to which the program jumps if an error occurs. |