Re: More freeform output using SORT

2021-02-05 Thread Sri h Kolusu
> 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

Re: More freeform output using SORT

2021-02-04 Thread Gibney, Dave
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

Re: More freeform output using SORT

2021-02-04 Thread Radoslaw Skorupka
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:

More freeform output using SORT

2021-02-04 Thread Gibney, Dave
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: