WEOF Examples


Example 1:

 

  

WEOF

DATAFILE,SEQ

 

Logical file:

DATAFILE

Method:

Sequential (SEQ is a previously defined negative numeric variable).

EOF Position:

End Of File (EOF) is set to the current file position.

 

Example 2:

 

  

WEOF

MYFILE,RECORD

 

Logical file:

MYFILE

Method:

Random (RECORD is a previously defined 0 or greater numeric variable).

EOF Position:

End Of File (EOF) is set to the beginning of the specified sector.

 

 



PL/B Language Reference VARLIST Example WHEREIS Example