Rational Developer for System z
PL/I for Windows, Version 7.6, Programming Guide

Specifying the records to be sorted

Use the RECORD statement as the second argument to PLISRTx. The syntax of the RECORD statement must be a character string expression which, when evaluated, accepts the following syntax:

Read syntax diagramSkip visual syntax diagram>>-'bRECORDbTYPE=rectype--+-------------+--b'------------------><
                          '-,LENGTH=(n)-'
 
b
One or more blanks. Blanks shown are mandatory. No other blanks are allowed.
TYPE
Specifies the type of record as follows:
F
Fixed length
V
Varying length

Even when you use input and output routines to handle the sorted and unsorted data, you must specify the record type as it applies to the work data sets used by sort.

If varying-length strings are passed to sort from an input routine (E15 exit), you should normally specify V as a record format. However, if you specify F, the records are padded to the maximum length with blanks.

LENGTH
Specifies the length of the record to be sorted. You can omit LENGTH if you use PLISRTA or PLISRTC, because the length is taken from the input data set. The maximum length of a record that can be sorted is 32,767 bytes. For varying-length records, you must include the 2-byte prefix.
n
The length of the record to be sorted.
Note:
Additional length specifications that can be used are ignored by workstation PL/I.

Terms of use | Feedback

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