Can you retrieve all of the datasets in the step and compare the ddnames? -- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 עַם יִשְׂרָאֵל חַי נֵ֣צַח יִשְׂרָאֵ֔ל לֹ֥א יְשַׁקֵּ֖ר
________________________________________ From: IBM Mainframe Discussion List <[email protected]> on behalf of Brian Westerman <[email protected]> Sent: Saturday, August 2, 2025 5:51 PM To: [email protected] <[email protected]> Subject: Re: Where to find DDnames to match JES DSNAME External Message: Use Caution Sorry, I forgot that it doesn't automatically append the original text when I reply. The question is about a situation where i know the JOB number and JOBID, as well as the PROCSTEP, and JOBSTEP, and the actuall DDNAME within the jobs JCL, but I do NOT know the JES DSN name. I know the format of the JES DSN, and I can get it dynamically 'if' I know that DSN. But I don't know how to get that dsn dynamically, except for the "well known" ones like JESMSG, JESJCL, etc. For instance, using SDSF i can "see' that my job has 4 JES datasets, three of them are the well known ones: NP DDNAME rDate-CrTime Forms FCB UCS Wtr Flash FlashC SegID DSName JESMSGLG 5/05/2025 21:19:04 STD **** **** **** 255 BRIANW.BWDSNCHK.JOB00418.D0000002.JESMSGLG JESJCL 5/05/2025 21:19:04 STD **** **** **** 255 BRIANW.BWDSNCHK.JOB00418.D0000003.JESJCL JESYSMSG 5/05/2025 21:19:04 STD **** **** **** 255 BRIANW.BWDSNCHK.JOB00418.D0000004.JESYSMSG SYSPRINT 5/05/2025 21:19:08 STD **** **** **** 255 BRIANW.BWDSNCHK.JOB00418.D0000102.? So i can always get the JESMSGLG, JESJCL and JESSYSMSG for this job, but the SYSPRINT DD has a name of : BRIANW.BWDSNCHK.JOB00418.D0000102.? I "know" that my ID is BRIANW and the job I submitted is called BWDSNCHK and I know my job number is 418, but I don't know a programmatic way to get the last part of the JES DSN (the D0000102). I "think" that the extended status SSI might be what I want, but I can't find a working sample to see it in action (i.e. to copy the code :)). Brian ---------------------------------------------------------------------- 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
