I think JES implements that using SAF calls. Lennie -----Original Message----- From: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> On Behalf Of Jay Maynard Sent: 09 August 2023 16:21 To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: DD SYSOUT=(,),DSN=&SYSUID?
Thank you for the explanation. I was wondering why anyone would care about a SYSOUT DSN. That RACF can secure it and (I assume) keep people from looking at it through SDSF and the like makes perfect sense. Does RACF implement that at the subsystem level, or does SDSF explicitly do RACHECKs for it? On Wed, Aug 9, 2023 at 8:48 AM Hayim Sokolsky <hsokol...@rocketsoftware.com> wrote: > DSN= has been legal for SYSOUT since MVS/ESA 3.1.3. However, it does > not give the coder much leeway. > > > > For SYSOUT the DSN value only affects the final qualifier of the JES > spool file name. Except for system generated spool files, the final > qualifier defaults to “?”. This can be used to write output specific > JESPOOL profiles in RACF or other ESMs. > > > > The syntax is: DSN=&&name – where name is 1 to 8 characters, starting > with an alpha or national character. The && does not substitute as > seen below. > > * As an undocumented trick, DSN=&&&SYSUID can be used to cause > substitution as if DSN=&&userid was specified. (See below) > > > > When looking at a job in SDSF, the node name is not shown in the spool > file name. When writing a JESSPOOL profile, the node name is the first > qualifier. > > > > //SYSPRINT DD SYSOUT=A > > > > Results in the spool dataset being named: > [node.]userid.jobname.jobnumber.dsnumber.? > > > > //SYSPRINT DD SYSOUT=A,DSN=&&FRODO > > > > Results in the spool dataset being named: > [node.]userid.jobname.jobnumber.dsnumber.FRODO > > > > Using the following job as an example… > > > > //IBMMAIN1 JOB 'IEBGENER',NOTIFY=&SYSUID, > > // CLASS=A,MSGCLASS=H,MSGLEVEL=(1,1) > > //IEBGENER EXEC PGM=IEBGENER > > //SYSPRINT DD SYSOUT=A,DSN=&&SYSUID = .SYSUID > > //SYSIN DD DUMMY > > //SYSUT2 DD SYSOUT=A,DSN=&&SYSUT2 = .SYSUT2 > > //SYSUT1 DD DATA,DSN=&&&SYSUID = .IBMMAIN > > hello world! > > /* > > // > > > > Viewed in SDSF after execution > > DDNAME DSName > > JESMSGLG IBMMAIN.IBMMAIN1.J0009213.D0000002.JESMSGLG > > JESJCL IBMMAIN.IBMMAIN1.J0009213.D0000003.JESJCL > > JESYSMSG IBMMAIN.IBMMAIN1.J0009213.D0000004.JESYSMSG > > SYSPRINT IBMMAIN.IBMMAIN1.J0009213.D0000102.SYSUID > > SYSUT2 IBMMAIN.IBMMAIN1.J0009213.D0000103.SYSUT2 > > > > With INPUT ON it shows as: > > DDNAME DSName > > JESJCLIN IBMMAIN.IBMMAIN1.J0009213.D0000001.JESJCLIN > > JESMSGLG IBMMAIN.IBMMAIN1.J0009213.D0000002.JESMSGLG > > JESJCL IBMMAIN.IBMMAIN1.J0009213.D0000003.JESJCL > > JESYSMSG IBMMAIN.IBMMAIN1.J0009213.D0000004.JESYSMSG > > $INTTEXT IBMMAIN.IBMMAIN1.J0009213.D0000005.$INTTEXT > > $JOURNAL IBMMAIN.IBMMAIN1.J0009213.D0000006.$JOURNAL > > EVENTLOG IBMMAIN.IBMMAIN1.J0009213.D0000008.EVENTLOG > > SYSUT1 IBMMAIN.IBMMAIN1.J0009213.D0000101.IBMMAIN > > SYSPRINT IBMMAIN.IBMMAIN1.J0009213.D0000102.SYSUID > > SYSUT2 IBMMAIN.IBMMAIN1.J0009213.D0000103.SYSUT2 > > > > > > A sysout specific RACF JESSPOOL profile would be: > > /* assumes any jobname owned by IBMMAIN with DSN=&&SYSUID */ > > > > RDEF JESSPOOL *.IBMMAIN.** UACC(NONE) OWNER(IBMMAIN) /* backstop */ > > > > RDEF JESSPOOL *.IBMMAIN.**.SYSUID UACC(NONE) OWNER(IBMMAIN) /* DD > suffix specific*/ > > PE *.IBMMAIN.**.SYSUID CLASS(JESSPOOL) ID(FRODO) > ACCESS(READ) > > > > > > Hayim > > > Hayim Sokolsky (he/him/his) > Director, Software Engineering > Rocket Software, USA > E: hsokol...@rocketsoftware.com<mailto:hsokol...@rocketsoftware.com> > W:RocketSoftware.com<https://www.rocketsoftware.com/> > The views I have expressed in this email are my own personal views, > and are not endorsed or supported by, and do not necessarily express > or reflect, the views, positions or strategies of my employer. > > > > -----Original Message----- > From: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> On > Behalf Of Allan Staller > Sent: Wednesday, August 9, 2023 8:12 AM > To: IBM-MAIN@LISTSERV.UA.EDU > Subject: Re: DD SYSOUT=(,),DSN=&SYSUID? > > > > EXTERNAL EMAIL > > > > > > > > > > > > Classification: Confidential > > > > SYSOUT= & DSN= are mutually exclusive on a given DD statement. Not > possible. > > > > -----Original Message----- > > From: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU<mailto: > IBM-MAIN@LISTSERV.UA.EDU>> On Behalf Of Paul Gilmartin > > Sent: Tuesday, August 8, 2023 2:50 PM > > To: IBM-MAIN@LISTSERV.UA.EDU<mailto:IBM-MAIN@LISTSERV.UA.EDU> > > Subject: DD SYSOUT=(,),DSN=&SYSUID? > > > > [CAUTION: This Email is from outside the Organization. Unless you > trust the sender, Don’t click links or open attachments as it may be a > Phishing email, which can steal your Information and compromise your > Computer.] > > > > How should the user code > > DD SYSOUT=(,),DSN=&SYSUID > > > > in order that the last qualifier of the system-generated name for the > sysout data set be the user ID under whose authority the job runs? > > > > How many ampersands? How many apostrophes? Is it even possible? > > > > -- > > gil > > > > ---------------------------------------------------------------------- > > For IBM-MAIN subscribe / signoff / archive access instructions, send > email to lists...@listserv.ua.edu<mailto:lists...@listserv.ua.edu> > with the > message: INFO IBM-MAIN > > ::DISCLAIMER:: > > ________________________________ > > The contents of this e-mail and any attachment(s) are confidential and > intended for the named recipient(s) only. E-mail transmission is not > guaranteed to be secure or error-free as information could be > intercepted, corrupted, lost, destroyed, arrive late or incomplete, or > may contain viruses in transmission. The e mail and its contents (with > or without referred errors) shall therefore not attach any liability > on the originator or HCL or its affiliates. Views or opinions, if any, > presented in this email are solely those of the author and may not > necessarily reflect the views or opinions of HCL or its affiliates. > Any form of reproduction, dissemination, copying, disclosure, > modification, distribution and / or publication of this message > without the prior written consent of authorized representative of HCL > is strictly prohibited. If you have received this email in error > please delete it and notify the sender immediately. Before opening any > email and/or attachments, please check them for viruses and other defects. > > ________________________________ > > > > ---------------------------------------------------------------------- > > For IBM-MAIN subscribe / signoff / archive access instructions, send > email to lists...@listserv.ua.edu<mailto:lists...@listserv.ua.edu> > with the > message: INFO IBM-MAIN > > ================================ > Rocket Software, Inc. and subsidiaries ■ 77 Fourth Avenue, Waltham MA > 02451 ■ Main Office Toll Free Number: +1 855.577.4323 Contact Customer > Support: > https://my.rocketsoftware.com/RocketCommunity/RCEmailSupport > Unsubscribe from Marketing Messages/Manage Your Subscription > Preferences - > http://www.rocketsoftware.com/manage-your-email-preferences > Privacy Policy - > http://www.rocketsoftware.com/company/legal/privacy-policy > ================================ > > This communication and any attachments may contain confidential > information of Rocket Software, Inc. All unauthorized use, disclosure > or distribution is prohibited. If you are not the intended recipient, > please notify Rocket Software immediately and destroy all copies of > this communication. Thank you. > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, send > email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN > -- Jay Maynard ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN