Xltpcfil procedure, G-31 – Nlynx ETU400 User Manual

Page 296

Advertising
background image

ETU400 User Guide 011603

G-26

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.

Advertising