View previous topic :: View next topic
|
Author |
Message |
saagu
New User
Joined: 15 May 2008 Posts: 41 Location: Chennai
|
|
|
|
Hi,
I need to convert N number of JCLs of a PDS from PROD to TEST using REXX.
I am able to convert all the JCL fields but no idea on how to Expand the PROCS of the JCL and modify the fields.
Please let me know how to do this if any idea.
Thanks and regards,
Saagu |
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
You can't. For this kind of things commercial tools are available.
Like JCLCHECK. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Of course, had the procedures been correctly written then all you would have needed to do was to change a parameter on the PROC statement and away you go. I usually use something like ......
Code: |
//PROC001 PROC ENV=''
//*--------------------------------------------------------------------
//STEP0010 EXEC PGM=IEBGENER
//SYSOUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSIN DD DUMMY
//SYSUT1 DD DSN=&ENV..DATASET.NAME,DISP=WHATEVER
//SYSUT2 DD DSN=&ENV..NEW.DATASET.NAME,DISP+WHATEVER ELSE |
Executed by
Code: |
//PROCNAME EXEC PROC001,ENV='DEV' |
Which of course makes life oh so much easier for all concerned. |
|
Back to top |
|
|
saagu
New User
Joined: 15 May 2008 Posts: 41 Location: Chennai
|
|
|
|
Hi Peter,
Can you provide me the pointers on how to find commercial tools like JCLCHECK
Regards,
Saagu |
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
Expat,
but to know beforehand what is going (in the future) to be changed, thats the question by creating procedures. |
|
Back to top |
|
|
saagu
New User
Joined: 15 May 2008 Posts: 41 Location: Chennai
|
|
|
|
Procedures.....is this a Stored procedure?? if not any sample proceure to change any filed of the PROC? |
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
saagu wrote: |
Hi Peter,
Can you provide me the pointers on how to find commercial tools like JCLCHECK
Regards,
Saagu |
google is your friend. |
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
saagu wrote: |
Procedures.....is this a Stored procedure?? if not any sample proceure to change any filed of the PROC? |
You could use IPOUPDTE. |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
Peter,Expat,
have fun with this one. |
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
Thanks Dick,
i was a bit bored. |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
saagu,
procedures should be written, so that the symbolics can be changed in the JOB, which would affect the procs.
sorry Peter, Expat,
I know that you guys are territorial. |
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
Quote: |
sorry Peter, Expat,
I know that you guys are territorial.
|
LOL Dick. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
PeterHolland wrote: |
but to know beforehand what is going (in the future) to be changed, thats the question by creating procedures. |
I guess I was brought up in a professional shop. If a PROC existed for development, then in all likelyhood it would be used for testing, acceptance and production environments too, so were created with this in mind. Why change umpteen lines of JCL in a PROC when only a single change of ENV= is needed.
Anyway, had the OP thought about it, what is so very different about changing the JCL that resides in a PDS as opposed to that which resides in a PROCLIB, which by extreme coincidence just happens to be a PDS |
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
Quote: |
I guess I was brought up in a professional shop. If a PROC existed for development, then in all likelyhood it would be used for testing, acceptance and production environments too, so were created with this in mind. Why change umpteen lines of JCL in a PROC when only a single change of ENV= is needed.
|
Well the company i worked for had development environments being
mirrors of production environments. So development procedures (for instance) were identical to production procedures.
If changes were applied on production jcl, they were propagated to
test, qa and so on environments.
No changes required. That doesnt sound professional? |
|
Back to top |
|
|
|