FPOSITB Examples


Example 1:

 

  

FPOSITB

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)

 

FILEB is positioned to the specified sector and byte position.

Example 2:

 

  

FPOSITB

FILE2,BYTEPTR

 

FILE2:

Logical file

BYTEPTR:

The current byte position within the file

 

FILEB is positioned to the specified byte position.

 



PL/B Language Reference FPOSIT Examples FPOSITC Examples