Thanks. I think I forgot about the OVERLAY statement and then didn't find it during this RTFM. Looks like I can get what I want. Now, I'm par way through this work. With a partial SORT and a partial Rexx ... :)
> -----Original Message----- > From: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> On > 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 find it: > https://urldefense.com/v3/__https://www.ibm.com/support/pages/syste > m/files/inline-files/$FILE/sorttrck.pdf__;!!JmPEgBY0HMszNaDT!- > gBmMm7SpjfnF1ubuUNQN9WKsVc9CWJ9v2FPIHmoWF6qg9B0JWhUp9wksC > rYRQ$ > > Look for IDCAMS and "Delete all members of a PDS" > This is similar example. > > > > (shameless plug: you can find my name in the book - I did it over 20 > years ago). > > -- > Radoslaw Skorupka > (looking for new job) > Lodz, Poland > > > > > W dniu 04.02.2021 o 22:28, Gibney, Dave pisze: > > 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: > > name="ZOS21D.ASM.AASMMAC1 " > > name="ZOS21D.ASM.AASMMAC2 " > > name="ZOS21D.ASM.AASMMOD1 " > > name="ZOS21D.ASM.AASMMOD2 " > > name="ZOS21D.ASM.AASMPUT2 " > > name="ZOS21D.ASM.AASMSAM1 " > > name="ZOS21D.ASM.AASMSAM2 " > > name="ZOS21D.CBC.ACCNCMP " > > name="ZOS21D.CBC.ACCNSR1 " > > name="ZOS21D.CBC.ACLBDLL " > > name="ZOS21D.CBC.ACLBDLL2 " > > But I want: > > name="ZOS21D.ASM.AASMMAC1" > > name="ZOS21D.ASM.AASMMAC2" > > name="ZOS21D.ASM.AASMMOD1" > > name="ZOS21D.ASM.AASMMOD2" > > name="ZOS21D.ASM.AASMPUT2" > > name="ZOS21D.ASM.AASMSAM1 " > > name="ZOS21D.ASM.AASMSAM2" > > name="ZOS21D.CBC.ACCNCMP" > > name="ZOS21D.CBC.ACCNSR1" > > name="ZOS21D.CBC.ACLBDLL" > > name="ZOS21D.CBC.ACLBDLL2" > > So I guess I need to use Rexx, or some other language? SORT doesn't do > variable length output fields? > > > > Dave Gibney > > Information Technology Services > > Washington State University > > > > > > ---------------------------------------------------------------------- > > For IBM-MAIN subscribe / signoff / archive access instructions, > > send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN