You may know that you can use ISMF in ISPF to view and query SMS classes. You can have it write the result to a file.
You can also run ISMF in batch. This interface is call NaviQuest. It is fairly complicated to use. The documentation is in z/OS DFSMSdfp Storage Administration Guide. The basic idea is you run two batch ISPF steps. The first collects the data from ISMF; essentially it is the same as if you were using the ISMF interface with query parameters. This writes an ISPF table. The second step creates a report from the ISPF table. You choose which columns you want to report. So the recommended procedure is to first get your query working in the ISPF panels for ISMF. And then, if you want, you can create the batch job that executes that same query. I have an example of extracting management classes, if you're interested. I can send that directly, it would get mangled by the listserv -- and it is 200 lines of JCL. -----Original Message----- From: IBM Mainframe Discussion List <[email protected]> On Behalf Of Billy Ashton Sent: Tuesday, June 4, 2024 2:09 PM To: [email protected] Subject: Getting list of SMS class entries [Some people who received this message don't often get email from [email protected]. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ] Hi all, this is a basic request, but I can't seem to find anything about it and hope you can help this poor old soul! I would like to be able to generate a list of SMS classes, data, management, and storage classes, and the attributes with them, that I could somehow parse in a Rexx program. Is there a command or program I could run and redirect the output to some sort of organized format file to get me this? For example, I would like to find all the Data classes with a RECFM/LRECL of FB/4096 that is also multi-volume or Management Classes with an expiration date < 90 days, etc. How can I do that in a batch process I can run monthly? Thank you and best regards, Billy Ashton ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
