Re: Overriding PARM from the START JOB command
the program we use reads a job stream from a pds and substitutes parameters before submitting the job to the internal reader. It is executed via a proc named 'JOB' - something like S JOB,J=PDSMEMB,P='PRM1=ABC, PRM2=123' where the jobstream in PDSMEMB would contain the statement //*% PRM1=DEFAULT PRM2=DEFAULT (which would set the default values for PRM1 and PRM2). subsequent jcl statements containing the words %PRM1 %PRM2 anywhere in the job stream would get the values of PRM1/PRM2 substituted with ABC/123 or whatever was passed to JOB in the P parm. multiple parms can be passed. this is the JOB proc. I am trying to find a copy of the source code which a former colleague here wrote along time ago, although I think that it might have been based on some IBM supplied code at the time. //JOB PROC J=PDSMEMB, // LIB='PDSMEMB.JOBLIB', // P=NONE, // PLIB='PDSMEMB.JOBLIB', // PL=NOPL, // INTRDR=INTRDR //ZHINTRDR EXEC PGM=ZHINTRDR, // PARM='&P' //PROGRAM DD DDNAME=IEFRDER //IEFRDER DD DSN=&PLIB(&PL),DISP=SHR // DD DSN=&LIB(&J),DISP=SHR //INTRDR DD SYSOUT=(A,&INTRDR) -Original Message- From: IBM Mainframe Discussion List [mailto:ibm-m...@bama.ua.edu] On Behalf Of Paul Gilmartin Sent: Monday, June 29, 2009 6:51 PM To: IBM-MAIN@bama.ua.edu Subject: Re: Overriding PARM from the START JOB command On Mon, 29 Jun 2009 21:26:51 +, Ted MacNEIL wrote: >>the program reads the job stream and substitutes parms flagged by % signs with user supplied values. > >At the risk of being obtuse, why roll your own, when the JES2/3 interpreters can already do this with '&'? > Does JOB ("the program"), perhaps, perform the substitution in instream data sets, label fields, etc.? This would be great added value over the JES2/3 "interpreters" (ITYM reader/converters -- isn't the substitution done before interpreter?) Did anyone supply the original member name of IBM's sample? I'll reread the thread. -- gil -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html
Re: Overriding PARM from the START JOB command
On Mon, 29 Jun 2009 21:26:51 +, Ted MacNEIL wrote: >>the program reads the job stream and substitutes parms flagged by % signs >>with user supplied values. > >At the risk of being obtuse, why roll your own, when the JES2/3 interpreters >can already do this with '&'? > Does JOB ("the program"), perhaps, perform the substitution in instream data sets, label fields, etc.? This would be great added value over the JES2/3 "interpreters" (ITYM reader/converters -- isn't the substitution done before interpreter?) Did anyone supply the original member name of IBM's sample? I'll reread the thread. -- gil -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html
Re: Overriding PARM from the START JOB command
>the program reads the job stream and substitutes parms flagged by % signs with >user supplied values. At the risk of being obtuse, why roll your own, when the JES2/3 interpreters can already do this with '&'? - Too busy driving to stop for gas! -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html
Re: Overriding PARM from the START JOB command
'JOB' is the name of a user written proc executing a program originally based upon a supplied sample (not sure of the original name - we call the program ZHINTRDR but it was modified by someone). the program reads the job stream and substitutes parms flagged by % signs with user supplied values. -Original Message- From: IBM Mainframe Discussion List [mailto:ibm-m...@bama.ua.edu] On Behalf Of Henrique Seganfredo Sent: Monday, June 29, 2009 4:33 PM To: IBM-MAIN@bama.ua.edu Subject: Overriding PARM from the START JOB command Hello, I was looking for a way of dynamically changing EXEC PARM contents when starting a new job. A friend of mine, after scanning some SYSLOGS, found this interesting piece: START JOB,NAME=MYJOB,P='''PARM=XYZ''' I did not find anything related in the MVS System Commands manual, which lists only these possible job-level keywords: ADDRSPC v BYTES v CARDS v COND v JESLOG v LINES v MSGCLASS v MSGLEVEL v NOTIFY v PAGES v PERFORM v PRTY v REGION v TIME So, whats is this 'P' keyword? Is it undocumented? -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html
Re: Overriding PARM from the START JOB command
>So, whats is this 'P' keyword? Is it undocumented? //PROC PROC,P= //STÉP PGM=pgm,PARM='&P.' At the console: S PROC,P=keyword - Too busy driving to stop for gas! -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html
Re: Overriding PARM from the START JOB command
> -Original Message- > From: IBM Mainframe Discussion List > [mailto:ibm-m...@bama.ua.edu] On Behalf Of Henrique Seganfredo > Sent: Monday, June 29, 2009 3:33 PM > To: IBM-MAIN@bama.ua.edu > Subject: Overriding PARM from the START JOB command > > Hello, I was looking for a way of dynamically changing EXEC > PARM contents > when starting a new job. > > A friend of mine, after scanning some SYSLOGS, found this > interesting piece: > > START JOB,NAME=MYJOB,P='''PARM=XYZ''' > > I did not find anything related in the MVS System Commands > manual, which > lists only these possible job-level keywords: > ADDRSPC v BYTES v CARDS v COND v JESLOG v LINES v MSGCLASS v > MSGLEVEL v NOTIFY v PAGES v PERFORM v PRTY v REGION v TIME > > So, whats is this 'P' keyword? Is it undocumented? An example of this might be something like: //JOB PROC P=,NAME= //STEP EXEC PGM=MYPGM,&P //INPUT DD DISP=SHR,DSN=some.dsn(&NAME) //* OTHER JCL Remember that STC JCL is usually just a simple PROC, just like any other PROC. -- John McKown Systems Engineer IV IT Administrative Services Group HealthMarkets(r) 9151 Boulevard 26 * N. Richland Hills * TX 76010 (817) 255-3225 phone * (817)-961-6183 cell john.mck...@healthmarkets.com * www.HealthMarkets.com Confidentiality Notice: This e-mail message may contain confidential or proprietary information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. HealthMarkets(r) is the brand name for products underwritten and issued by the insurance subsidiaries of HealthMarkets, Inc. -The Chesapeake Life Insurance Company(r), Mid-West National Life Insurance Company of TennesseeSM and The MEGA Life and Health Insurance Company.SM -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html
Re: Overriding PARM from the START JOB command
If you look in the PROCLIB that contains MYJOB, you will see that the proc has a symbolic parameter named P and this is how it is initialized for a started task or started job. I don't think you can use this for a batch job. -Original Message- From: Henrique Seganfredo Sent: Monday, June 29, 2009 1:33 PM To: IBM-MAIN@bama.ua.edu Subject: Overriding PARM from the START JOB command Hello, I was looking for a way of dynamically changing EXEC PARM contents when starting a new job. A friend of mine, after scanning some SYSLOGS, found this interesting piece: START JOB,NAME=MYJOB,P='''PARM=XYZ''' I did not find anything related in the MVS System Commands manual, which lists only these possible job-level keywords: ADDRSPC v BYTES v CARDS v COND v JESLOG v LINES v MSGCLASS v MSGLEVEL v NOTIFY v PAGES v PERFORM v PRTY v REGION v TIME So, whats is this 'P' keyword? Is it undocumented? -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html