On Sun, 3 Aug 2025 00:22:20 +0000, Seymour J Metz <[email protected]> wrote:
>Can you retrieve all of the datasets in the step and compare the ddnames? No, I don't think that's viable. All the user will know is that they ran a job and they want the SYSOUT from the //sysprint dd in STEP03 of their job. SO they would hopefully be able to code something like: GET Jobname JobID PROCstep (if any) Stepname SYSPRINT. I could then use that data to go and "look up" all of the JES DSNs for that job but I will have names like: BRIANW.MYJOB.JOB00011.D0000110 and BRIANW.MYJOB.job0111.D0000111, but I won't know what steps and what JES DSN's go with what actual JOB step DD's. i "think" that SSI 80 (extended status) would allow me to go through by owner/JOBNAME/JOBID and flip through the steps, looking for the stepname I want (in this case STEP03), and then in that step, look for the DD name i want (in this case SYSPRINT), and if I find it, the JES DSN should be (hopefully) right there. SO i can then take that JES DSN, and using spool browse, bring up the sysout from that DD within that step of that job. My problem is that i can't find a working assembler program that has the extended status call so I can play with it to see what i can get taht will give me that access. Does anyone have an assembler program they can share with me that will help me figure this out? Brian > >-- >Shmuel (Seymour J.) Metz >http:/maason.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 thaiiit 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, JESCCL 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 ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
