https://www.ibmmainframer.com/jcl-tutorial/jcl-sort-fields/
JCL - SORT SORT Fields - JCL Tutorial
JCL Tutorial - JCL SORT control statement must be used when a sorting file is performed. This statement describes the control fields in the input records on...
jcl sortfieldstutorial
https://ibmmainframes.com/about38760.html
Last record to get from a ps through JCL sort -IBM Mainframes
to getjcl sortibm mainframeslastrecord