WRITAB Example


Example:

 

  

WRITAB

FILE1,RECORD;DATA,*121,FIELD2

 

Logical file:

FILE1

Method:

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

Variables:

DATA and FIELD2

List controls:

*121 (tab to position 121 within the sector before writing FIELD2)

Partial write:

Implied by WRITAB (EOR must be written by program, if desired)

 

 



PL/B Language Reference WORD Examples WRITE AFILE Examples