//jobname etc. //* // EXPORT SYMLIST=* // SET SYM1=MYVALUE1,SYM2=SOMETHING.ELSE //* //JS010 EXEC PGM=IEBGENER ** Tailor JCL ** //SYSUT1 DD DATA,DLM=##,SYMBOLS=JCLONLY //JOB$$BJG JOBGROUP (125101000),'scheduled jobs',OWNER=... //JOB$$B0A GJOB //JOB$$B1A GJOB // AFTER NAME=JOB$$B0A,WHEN=(RC=0) //* //JOB$$B2S JOBSET // AFTER NAME=JOB$$B1A,WHEN=(RC=0) //JOB$$B2A SJOB //JOB$$B2B SJOB //JOB$$B2S ENDSET //* ## //SYSUT2 DD SYSOUT=(A,INTRDR) //SYSPRINT DD DUMMY //SYSIN DD DUMMY //
-----Original Message----- From: IBM Mainframe Discussion List <[email protected]> On Behalf Of Schmitt, Michael Sent: Tuesday, October 7, 2025 1:36 PM To: [email protected] Subject: Re: Symbols in a JECL JOBGROUP? I needed to do this. What I did is wrap the entire job inside another job, as instream data. The outer job did the SET of the symbols, and copied the now tailored JCL to the internal reader. -----Original Message----- From: IBM Mainframe Discussion List <[email protected]> On Behalf Of Billy Ashton Sent: Tuesday, October 7, 2025 1:12 PM To: [email protected] Subject: Symbols in a JECL JOBGROUP? Hi again, and thanks for the direction on my previous DFSORT question. Now, for something completely different... I am using JECL Jobgroups to schedule a set of 9 jobs that will always run as a set, and am working fine with the scheduling process. My question is - Does anyone know of a way to set a symbol in the JobGroups definition that will carry through each of the individual jobs? All nine jobs use the same two symbols (and other jobs have other symbols, too), and it would be so easy to use something like this: //JOB$$BJG JOBGROUP (125101000),'scheduled jobs',OWNER=... //* // SET SYM1=MYVALUE1,SYM2=SOMETHING.ELSE //* //JOB$$B0A GJOB //JOB$$B1A GJOB // AFTER NAME=JOB$$B0A,WHEN=(RC=0) //* //JOB$$B2S JOBSET // AFTER NAME=JOB$$B1A,WHEN=(RC=0) //JOB$$B2A SJOB //JOB$$B2B SJOB //JOB$$B2S ENDSET //* Am I dreaming, or is there a way to do this, so I can set SYM1 and SYM2 here at the top and have it propagate through the jobs? Thank you and best regards, Billy Ashton ---------------------------------------------------------------------- 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
