hi , I am reading a Sequential file in Eazytrieve . After each record is read
am checking EOF , if EOF is reached trying to display some values. But am not getting these Displays even after the EOF is reached .
Impacted code :
Job input file1
If EOF file1
Whereas the displays are working when given in FINISH module
Job input file1 finish sr-finish
Can anyone help me with an answer for why it dint work in the first place but in the later??
With the former you have to obtain the records and cause the processing to cease when you know there are no more records. So you test for EOF and use STOP. STOP causes the FINISH procedure to be executed.
With the latter, Easytrieve does all the processing and does an implicit STOP at end of file for your input file. So you never get to see EOF for the automatic input as Easytrieve has already done the implied STOP.
EDIT: As to the manual, you should be able to locate one if your site is licensed to use the product. There is a Reference (most useful) and a User Guide and other bits and pieces that exist but which your site may not use or may not let you have access to.