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

Comparing S/390 and workstation sort programs

If your existing mainframe programs contain CALL PLISRTx, you can download and run them on your workstation. Several of the parameters allowed on S/390 are ignored, and alter run-time behavior to some extent. The following table indicates which arguments accepted by OS PL/I are ignored by the workstation compiler.

Table 31. workstation PLISRTx
Built-in subroutine Arguments
PLISRTA
Sort input:  data set
Sort output:  data set
(sort statement,record statement,storage,return code
[,data set prefix,message level, sort technique])
PLISRTB
Sort input:  PL/I subroutine
Sort output:  data set
(sort statement,record statement,storage,return
code, input routine
[,data set prefix,message level,sort technique])
PLISRTC
Sort input:  data set
Sort output:  PL/I subroutine
(sort statement,record statement,storage,return
code,  output routine
[,data set prefix,message level,sort  technique])
PLISRTD
Sort input:  PL/I subroutine
Sort output:  PL/I subroutine
(sort statement,record statement,storage,return code, input routine,output routine [,data set prefix,message level,sort technique])
Argument definitions:
Sort statement
Character string expression describing sorting fields and format. See Specifying the sorting field.
Record statement
Character string expression describing the length and record format of data. See Specifying the records to be sorted.
Storage
Ignored by workstation PL/I.
Return code
Fixed binary variable of precision (31,0) in which sort places a return code when it has completed. The meaning of the return code is:
  • 0=Sort successful
  • 16=Sort failed
Input routine
(PLISRTB and PLISRTD only.) Name of the PL/I external or internal procedure used to supply the records for the Sort program at sort exit 15. For specific requirements using workstation PL/I, see E15 -- input-handling routine (sort exit E15).
Output routine
(PLISRTC and PLISRTD only.) Name of the PL/I external or internal procedure to which Sort passes the sorted records from sort exit 35. For specific requirements using workstation PL/I, see E35 -- output-handling routine (sort exit E35).
Data set prefix
Ignored by workstation PL/I, which only processes SORTIN and SORTOUT as ddnames.
Message level
Ignored by workstation PL/I.
Sort technique
Ignored by workstation PL/I.
Rational Developer for System z
PL/I for Windows, Version 8.0, Programming Guide