LISTING ALL DATASETS STARTING WITH A PARTICULCAR FIRST LEVEL QUALIFIER This JCL will search for all the Data sets starting with “USERID” as the first level qualifier The results will be written to spool (in SYSTSPRT). Â It will also show the status (active / migrated) and other information.
//LISTDSN Â JOB (XXXXXXXX,,,,,XXXX),’ Â Â Â Â ‘, Â Â Â Â Â Â // Â Â Â Â Â Â CLASS=J,MSGCLASS=T,NOTIFY=&SYSUID, Â Â Â Â Â //LISTDS Â EXEC PGM=IKJEFT1B Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â EXEC ‘SYS1.SAMPLIB(IGGCSIRX)’ EXEC Â Â Â Â Â Â Â Â Â Â Â Â