FPOSIT Examples


Example 1:

 

  

FPOSIT

FILE1,SECTOR,BYTE

 

FILE1:

Logical file

SECTOR:

The current sector number based upon the defined sector size

BYTE:

The current character position (tab) within the sector (up to sector size)

 

FILE1 is positioned to the specified sector and byte position within that sector.

Example 2:

 

  

FPOSIT

FILE2,BYTEPTR

 

FILE2:

Logical file

BYTEPTR:

The current byte position within the file

 

FILE2 is positioned to the specified byte position.

 



PL/B Language Reference FORM Examples FPOSITB Examples