![](/images/new-backgrounds/1146581/146581591x1.webp)
TESTFILE Procedure
ETU36 TESTFILE, workstation file name ,,, | ida offset |
| NOTIFY |
The TESTFILE procedure tests for the presence of the specified file and returns the number of bytes (characters) in the file. Depending on the “lda offset” parameter, the results of the test will be either given to the operator as a message, or placed in the Local Data Area (LDA) for later use by the programmer in determining the next step to process in the application program.
workstation file name is the name of the workstation file to be tested.
For additional information, see “Workstation File Name” on page
lda offset (optional) has two possible values: NOTIFY and LDA position. If NOTIFY is specified, the operator will be sent a message with the results of the test. If a number is specified, it indicates the starting position in the LDA (Local Data Area) where the results of the test will be placed. The results of the test are 12 bytes long and will start at the specified LDA offset, anywhere from 1 to 501. The first 4 bytes are the return code. If the file is found, the return code is 0000. Any other return code indicates either an error or that the file was not found. The remaining 8 bytes contain the workstation file size, if the file is found. The default is NOTIFY.
ETU400 User Guide 011603 |