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

SET option

The SET option can be used with a READ statement or a LOCATE statement. For the READ statement, it specifies a pointer variable that is set to point to the record read. For the LOCATE statement, it specifies a pointer variable that is set to point to the next record for output.

If the SET option is omitted for the LOCATE statement, the pointer declared with the record variable is set. If a VARYING string is transmitted, the SCALARVARYING option must be specified for the file.

The following example specifies that the value of the pointer variable P is set to the location in the buffer of the next sequential record:

  read file (X) set (P);

Terms of use | Feedback

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