Rational Developer for System z
Enterprise PL/I for z/OS, Version 3.8, Language Reference Manual

FILESEEK

FILESEEK changes the current file position associated with file x to a new location within the file. The next operation on the file takes place at the new location. It also returns a FIXED BIN(31) value that is 0 if the change in file position is successful and non-zero otherwise. FILESEEK is equivalent to the fseek function in C.

Read syntax diagramSkip visual syntax diagram>>-FILESEEK(x,y,z)---------------------------------------------><
 
x
File reference.
y
A FIXED BINARY(31) value that indicates the number of positions the file pointer is to be moved relative to z.
z
A FIXED BINARY(31) value that indicates the origin from which the file pointer is to be moved. The following values are valid:
-1
Beginning of the file
0
Current position of the file pointer
1
End of the file.

FILESEEK can be used only on TYPE(U) files.


Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)