Michael, I am not sure why I hadn't thought of this, but it worked
perfectly. If I had any JCL with the SYM1 or SYM2 symbolic, it
substituted as expected, and the rest of the symbols (set in each job),
stayed as symbols, to be resolved when that job ran.
Thanks again for this powerfully simple idea!
Billy Ashton
------ Original Message ------
From "Schmitt, Michael" <0000088c300b0412-dmarc-requ...@listserv.ua.edu>
To IBM-MAIN@listserv.ua.edu
Date 10/7/2025 2:41:01 PM
Subject Re: Symbols in a JECL JOBGROUP?
//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 <IBM-MAIN@LISTSERV.UA.EDU> On Behalf Of
Schmitt, Michael
Sent: Tuesday, October 7, 2025 1:36 PM
To: IBM-MAIN@LISTSERV.UA.EDU
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 <IBM-MAIN@LISTSERV.UA.EDU> On Behalf Of
Billy Ashton
Sent: Tuesday, October 7, 2025 1:12 PM
To: IBM-MAIN@LISTSERV.UA.EDU
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 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
----------------------------------------------------------------------
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