Looking for information on PLISRTD - built-in sort.
>I'm looking for an explanation of how PLISRTD(built-in sort) works.
>Can anyone post some information or point me to some documentation I
>Thanks in advance.
Yeah, did a couple in 1980. Call SORT from your mainline, telling it
in the parms the names of your PL/I procedures to be considered
the E15 and E35 exits. SORT gets control and calls your E15 proc
for each input record. It also calls your E35 exit with each sorted
output record. After the SORT control returns to your mainline.
Your exits procure and dispose of records anyway you want, including
I/O to files, calling other routines, etc. Return codes are used to tell
SORT that input record is presented, or "end-of-file" for "SORTIN" has
occurred, etc. As for syntax and the numeric values of these codes,
see the manual. It probably has some examples.
If your sort input is merely an unedited file, and your sort output goes
straight to a file, use PLISRTA and let SORT do the I/O. Similarly,
PLISRTB and PLISRTC are available if only one of these is true.
P.S. I think "the manual" is Programmer's Guide
(as opposed to Language Reference).