> So I guess I need to use Rexx, or some other language? SORT doesn't
> do variable length output fields?
Dave,
You don't have to use REXX as DFSORT is quite capable of handling variable
string. Use the function JFY (justifies string to left/right) or SQZ
(removes spaces in between and
t; Behalf Of Radoslaw Skorupka
> Sent: Thursday, February 04, 2021 2:55 PM
> To: IBM-MAIN@LISTSERV.UA.EDU
> Subject: Re: More freeform output using SORT
>
> AFAIR there is one of "Smart DFSORT Tricks" which address the problem.
> The book is old (20+ years), but you can
AFAIR there is one of "Smart DFSORT Tricks" which address the problem.
The book is old (20+ years), but you can find it:
https://www.ibm.com/support/pages/system/files/inline-files/$FILE/sorttrck.pdf
Look for IDCAMS and "Delete all members of a PDS"
This is similar example.
(shameless plug:
Given a list of Datasets with varying length dsnames:
ZOS21D.ASM.AASMMAC1
ZOS21D.ASM.AASMMAC2
ZOS21D.ASM.AASMMOD1
ZOS21D.ASM.AASMMOD2
ZOS21D.ASM.AASMPUT2
ZOS21D.ASM.AASMSAM1
ZOS21D.ASM.AASMSAM2
ZOS21D.CBC.ACCNCMP
ZOS21D.CBC.ACCNSR1
ZOS21D.CBC.ACLBDLL
ZOS21D.CBC.ACLBDLL2
I easily get: