Nlynx ETU400 manual Testfile Procedure, Notify

Models: ETU400

1 314
Download 314 pages 52.42 Kb
Page 296
Image 296

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 4-2.

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

G-26

Page 296
Image 296
Nlynx ETU400 manual Testfile Procedure, Notify