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.
Summary of Contents for ETU400
Page 1: ...i ETU400 User Guide AS 400FileTransferUtility...
Page 30: ...ETU400 User Guide 011603 2 5 old versions since most users do not modify these tables...
Page 183: ...ETU400 User Guide 011603 10 53...
Page 239: ...ETU400 User Guide 011603 E 1 Appendix E ERRORMESSAGES NATIVEMODE...
Page 264: ...ETU400 User Guide 011603 F 1 Appendix F ASCII EBCDICPRINTABLECHARACTERS...
Page 304: ...ETU400 User Guide 011603 H 1 Appendix H INTERNATIONALTRANSLATIONTABLES...
Page 309: ...ETU400 User Guide 011603 J 1 Appendix J ETUTHROUGHPUTCONSIDERATIONS...