When attempting to have an external sort rexx will not allow allocatio9n of sorting & sysin that is required for the sort. This code work in TSO but issues in batch.
"SUPMSGS."
srto = "'"userid()".SORTOUT.TEMP'"
"'.SORTOUT.TEMP'"
address tso "del" srto
"del '.SORTOUT.TEMP'"
RC(8) +++
address tso "FREE FI(SYSOUT SORTIN SORTOUT SYSIN)"
"FREE FI(SYSOUT SORTIN SORTOUT SYSIN)"
RC(12) +++
address tso "ALLOC FI(sysout) SPACE(1,1) TRACK LRECL(80) RECF
"ALLOC FI(sysout) SPACE(1,1) TRACK LRECL(80) RECFM(F) BLK
address tso "allocate fi(sortin) space(10,10) cylinders ",
"allocate fi(sortin) space(10,10) cylinders lrecl(53) blk
RC(12) +++
"SUPMSGS."
srto = "'"userid()".SORTOUT.TEMP'"
"'.SORTOUT.TEMP'"
address tso "del" srto
"del '.SORTOUT.TEMP'"
RC(8) +++
address tso "FREE FI(SYSOUT SORTIN SORTOUT SYSIN)"
"FREE FI(SYSOUT SORTIN SORTOUT SYSIN)"
RC(12) +++
address tso "ALLOC FI(sysout) SPACE(1,1) TRACK LRECL(80) RECF
"ALLOC FI(sysout) SPACE(1,1) TRACK LRECL(80) RECFM(F) BLK
address tso "allocate fi(sortin) space(10,10) cylinders ",
"allocate fi(sortin) space(10,10) cylinders lrecl(53) blk
RC(12) +++