Hi all,
I've a requirement,where I need to add override statement to pick the proc from another library for 3k jobs.Is their any way,where I can say add below statement only before first exec statement in a JCL.
// JCLLIB ORDER=userid.test.proclib
Is there any way/utility we can achieve this.Any inputs will be helpful.
To add a override statement in JCL
-
- Global moderator
- Posts: 3025
- Joined: Sun Jul 04, 2010 12:13 am
- Skillset: JCL, PL/1, Rexx, Utilities and to a lesser extent (i.e. I have programmed using them) COBOL,DB2,IMS
- Referer: Google
- Location: Pushing up the daisies (almost)
Re: To add a override statement in JCL
Yes. Refer to similar requirements in the forum.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
Regards
Nic
Re: To add a override statement in JCL
Hi NIck,
I searched the forum with all the possible keywords,couldn't find what I was looking for,that's the reason I posted this question.
I searched the forum with all the possible keywords,couldn't find what I was looking for,that's the reason I posted this question.
-
- Global moderator
- Posts: 3025
- Joined: Sun Jul 04, 2010 12:13 am
- Skillset: JCL, PL/1, Rexx, Utilities and to a lesser extent (i.e. I have programmed using them) COBOL,DB2,IMS
- Referer: Google
- Location: Pushing up the daisies (almost)
Re: To add a override statement in JCL
The name is Nic or NicC not Nick.
You need to write a program in the language of your choice - probably Rexx - to read each job and insert the new JCLLIB statement. Depending on the EXACT change tobe made it could be done with a simple edit macro.
You need to write a program in the language of your choice - probably Rexx - to read each job and insert the new JCLLIB statement. Depending on the EXACT change tobe made it could be done with a simple edit macro.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
Regards
Nic
- prino
- Posts: 641
- Joined: Wed Mar 11, 2009 12:22 am
- Skillset: PL/I - CICS - DB2 - IDMS - REXX - JCL, most in excess of three decades
- Referer: Google
- Location: Vilnius, Lithuania
- Contact:
Re: To add a override statement in JCL
Ashu07 wrote:Hi all,
I've a requirement,where I need to add override statement to pick the proc from another library for 3k jobs.Is their any way,where I can say add below statement only before first exec statement in a JCL.
// JCLLIB ORDER=userid.test.proclib
Is there any way/utility we can achieve this.Any inputs will be helpful.
An override for 3k jobs is insane. Which PHB has decided to do this? Do your auditors agree with it?
Robert AH Prins
robert.ah.prins @ the.17+Gb.Google thingy
robert.ah.prins @ the.17+Gb.Google thingy
Re: To add a override statement in JCL
We are doing this for test environment.so they are fine with it.
-
- Posts: 474
- Joined: Thu Mar 10, 2016 5:03 pm
- Skillset: assembler rexx zOS ispf racf smf
- Referer: saw it in the experts foprum thought I could help here
Re: To add a override statement in JCL
This is the simplest 'Edit all' command I could find. It doesnt do much in the way of error checking and such, I will leave that up to the user..
Sample edit macro
3000 members, it's going to run for a while, so it might be worth your while to look at alternatives like File Manager (dont know if that can do this kind of change). Other consideration, if this is just one PDS and not PDS/E then you could run into space problems.
Code: Select all
/* rexx
Run an ISPF Edit Macro against every member of named pds
Syntax: %Editall dsname edit-macro
*/
arg dsn mac
zz=outtrap('lst.')
"LISTDS" requote(dsn) "MEMBERS"
zz=outtrap('off')
dsn = unquote(dsn)
do n = 7 to lst.0
Address ISPEXEC "EDIT DATASET('"dsn"("strip(lst.n)")') MACRO("mac")"
end
exit
Requote: if arg(1)='' then return '';else return "'"Unquote(arg(1))"'"
Unquote: return strip(space(translate(arg(1)," ","'")))
Sample edit macro
Code: Select all
/* ISPF edit macro rexx */
Address Isredit "MACRO NOPROCESS(P)"
Address Isredit
l='Just testing'
"line_after 1 = (l)"
"save"
"cancel"
3000 members, it's going to run for a while, so it might be worth your while to look at alternatives like File Manager (dont know if that can do this kind of change). Other consideration, if this is just one PDS and not PDS/E then you could run into space problems.
-
- Posts: 474
- Joined: Thu Mar 10, 2016 5:03 pm
- Skillset: assembler rexx zOS ispf racf smf
- Referer: saw it in the experts foprum thought I could help here
Re: To add a override statement in JCL
By the way, the sample does not do screen display , so could be run as an ISPF batch job.
Re: To add a override statement in JCL
Thanks Willy,Let me try this out.
-
- Similar Topics
- Replies
- Views
- Last post
-
-
Override DD-statements of an in-stream procedure
by aldencarr123 » Sun Nov 15, 2020 3:40 am » in JCL - 4
- 2586
-
by willy jensen
View the latest post
Mon Nov 16, 2020 1:53 pm
-
-
- 8
- 4343
-
by steve-myers
View the latest post
Sat Oct 16, 2021 8:59 pm
-
-
Splice JCL into one record for DD statement parms
by phcribb » Thu Nov 05, 2020 9:31 pm » in CLIST & REXX - 3
- 1960
-
by phcribb
View the latest post
Fri Nov 06, 2020 8:06 pm
-