HP RPG/iX Utilities Reference Manual (30318-90006)

7-73
!FILE XSORTIN2=TSTIN2 file designators
!FILE XSORTIN3=TSTIN3
!FILE XSORTOUT=TSTOUT
!RUN XSORT.PUB.SYS
00000HSORTR 4A X 33
00000S Y 35 Specifications
00005I C 33NECX imbedded in
00010FNC 6 9 job stream
00020FDC 1 32 EDITOR file
00030FDV *
!EOD
!SAVE TSTOUT
!FCOPY FROM=TSTOUT;TO=
!EOJ
1 S Option is used to provide the maximum number of records to be sorted.
NOTE The example uses XSORTIN1, XSORTIN2, etc. In a multiple input sort, XSORTIN
cannot be used to designate an input file. Input files must begin with XSORTIN1, but
may skip numbers. For example, XSORTIN3 could follow XSORTIN1.
Example 9: SORTC (Count-Only Sort)
Single input file, no output.
!JOB TSTXSRT9,MGR.SUBSYS,XSORT;OUTCLASS=,1
!COMMENT THIS IS AN EXAMPLE OF A COUNT-ONLY SORT FROM
!COMMENT WHICH THERE IS NO OUTPUT OTHER THAN A STATISTICAL
!COMMENT REPORT ON THE RECORDS SELECTED TO SORT.*******
!COMMENT************************************************
!FCOPY FROM=TSTIN;TO=
!FILE XSORTIN=TSTIN
!RUN XSORT.PUB.SYS Specifications
00000HSORTC imbedded in
000051 C 33NECX job stream
!EOD EDITOR file
!EOJ
1 No purge of the XSORTOUT file is required.
2 No output file is designated since there is only a statistical report produced by a SORTC on the
records selected for processing.
NOTE Count-only (SORTC) can also be used with multiple file sorts. See Example 8 for uses