On Thu, Aug 1, 2019 at 8:22 AM Cameron Conacher <conac...@gmail.com> wrote:
> Hello to the DFSORT folks. > I have a file of data containing extracts from some JCL. > Specifically, I am looking for all values of DATACLAS. > This all relates back to Pervasive Encryption. I just want a quick report > of the DATACLAS values in use today, as well as the counts for each > DATACLAS item I find. > > I ran a quick compare to get a report from our JCL Library, and now I am > building a SORT to look at the variable length input file data. > I can use 'INCLUDE COND=(5,70,SS,EQ,C'DATACLAS=') to select a subset of > records from the original compare report. > I could take this file and play with it in ISPF EDIT to pull out the eight > bytes following 'DATACLAS='. > However, I am wondering if I can do this in DFSORT. > So, if I have > DATACLAS=FRED, > I would want to extract and summarize FRED and if I have > DATACLAS=POTATO I would want to extract and summarize POTATO > I guess the question is how can I extract characters from the input records > that appear following the SubString match? > > Thanks > Presenting an alternative route: The DATACLASS for a catalogued dataset is in the catalog. Maybe you could use some sort of catalog product to scan all your catalogs and extract the DSN and DATACLASS. -- A sine curve goes off to infinity, or at least the end of the blackboard. -- Prof. Steiner Maranatha! <>< John McKown ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN