Marc, We are z/OS V2.1 here, so I tested this and it works (where A.B.C exists as a GDG with no generations):
//TSOUSERZ JOB . . . //LISTCAT EXEC PGM=IKJEFT01 //SYSTSPRT DD SYSOUT=* //SYSTSIN DD * LISTCAT LEV(A.B.C) // Output on SYSTSPRT is: READY LISTCAT LEV(A.B.C) IDC3012I ENTRY A.B.C. NOT FOUND+ IDC3007I ** VSAM CATALOG RETURN CODE IS 8 IDC1566I ** A.B.C NOT LISTED IDC0014I LASTCC=4 READY END JESMSGLG output, step RC = 04: 15.32.56 JOB21257 -STEPNAME PROCSTEP PROGRAM RC EXCP 15.32.56 JOB21257 - LISTCAT IKJEFT01 04 27 I also tested for an A.B.C GDG base where there do exist generations and RC=0 in that case. HTH Peter -----Original Message----- From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf Of Marc Manuel Sent: Monday, July 06, 2015 3:26 PM To: [email protected] Subject: Re: IDCAMS LISTCAT LEVEL and z/OS 2.1 I know that I could write some REXX... I just asked if something like // EXEC PGM=MAGIG_UTILITY,PARM='MYGDG.TO.CHECK' was existing somewhere ... -- This message and any attachments are intended only for the use of the addressee and may contain information that is privileged and confidential. If the reader of the message is not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail and delete the message and any attachments from your system. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
