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

Using sort routines

Comparing S/390 and workstation sort programs
Preparing to use sort
Choosing the type of sort
Specifying the sorting field
Example:
Specifying the records to be sorted
Example:
Calling the sort program
PLISRT examples
Example 1
Example 2
Example 3
Example 4
Determining whether the sort was successful
Sort data input and output
Sort data handling routines
E15 — input-handling routine (sort exit E15)
E35 — output-handling routine (sort exit E35)
Calling PLISRTA
Calling PLISRTB
Calling PLISRTC
Calling PLISRTD, example 1
Calling PLISRTD, example 2

PL/I for Windows supports the PLISRTx (x = A, B, C, or D) built-in subroutines. To use the PLISRTx subroutines, you need to:

When used from PL/I, these subroutines sort records of all normal lengths on a large number of sorting fields. Data of most types can be sorted into ascending or descending order. The source of the data to be sorted can be either a data set or a PL/I procedure written by the programmer that the sort program calls each time a record is required for the sort. Similarly, the destination of the sort can be a data set or a PL/I procedure that handles the sorted records.


Terms of use | Feedback

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