Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Expanding PROC of a JCL and modifying the fields

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
saagu

New User


Joined: 15 May 2008
Posts: 41
Location: Chennai

PostPosted: Thu Jul 22, 2010 2:43 pm    Post subject: Expanding PROC of a JCL and modifying the fields
Reply with quote

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
View user's profile Send private message

PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2422
Location: Netherlands, Amstelveen

PostPosted: Thu Jul 22, 2010 2:47 pm    Post subject:
Reply with quote

You can't. For this kind of things commercial tools are available.
Like JCLCHECK.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Thu Jul 22, 2010 2:58 pm    Post subject:
Reply with quote

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
View user's profile Send private message
saagu

New User


Joined: 15 May 2008
Posts: 41
Location: Chennai

PostPosted: Thu Jul 22, 2010 3:06 pm    Post subject: Reply to: Expanding PROC of a JCL and modifying the fields
Reply with quote

Hi Peter,
Can you provide me the pointers on how to find commercial tools like JCLCHECK


Regards,
Saagu
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2422
Location: Netherlands, Amstelveen

PostPosted: Thu Jul 22, 2010 3:06 pm    Post subject:
Reply with quote

Expat,

but to know beforehand what is going (in the future) to be changed, thats the question by creating procedures.
Back to top
View user's profile Send private message
saagu

New User


Joined: 15 May 2008
Posts: 41
Location: Chennai

PostPosted: Thu Jul 22, 2010 3:09 pm    Post subject: Reply to: Expanding PROC of a JCL and modifying the fields
Reply with quote

Procedures.....is this a Stored procedure?? if not any sample proceure to change any filed of the PROC?
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2422
Location: Netherlands, Amstelveen

PostPosted: Thu Jul 22, 2010 3:11 pm    Post subject: Re: Reply to: Expanding PROC of a JCL and modifying the fiel
Reply with quote

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
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2422
Location: Netherlands, Amstelveen

PostPosted: Thu Jul 22, 2010 3:13 pm    Post subject: Re: Reply to: Expanding PROC of a JCL and modifying the fiel
Reply with quote

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
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Jul 22, 2010 3:13 pm    Post subject:
Reply with quote

Peter,Expat,
have fun with this one.
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2422
Location: Netherlands, Amstelveen

PostPosted: Thu Jul 22, 2010 3:14 pm    Post subject:
Reply with quote

Thanks Dick,

i was a bit bored.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Jul 22, 2010 3:20 pm    Post subject:
Reply with quote

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
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2422
Location: Netherlands, Amstelveen

PostPosted: Thu Jul 22, 2010 3:21 pm    Post subject:
Reply with quote

Quote:

sorry Peter, Expat,
I know that you guys are territorial.


LOL Dick.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Thu Jul 22, 2010 3:27 pm    Post subject:
Reply with quote

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 icon_eek.gif
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2422
Location: Netherlands, Amstelveen

PostPosted: Thu Jul 22, 2010 3:37 pm    Post subject:
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Access SQLCA fields inside a stored p... gangapd DB2 4 Thu Oct 27, 2016 10:20 am
No new posts Need Help to Define 36 Input Fields (... satish.ms10 CLIST & REXX 2 Sat May 07, 2016 3:08 pm
No new posts FileAid to compare(logical operations... anand1204 Compuware & Other Tools 3 Wed Apr 06, 2016 2:55 am
No new posts Fields in File-Aid Browse menu screen boyti ko Compuware & Other Tools 5 Mon Apr 04, 2016 4:51 pm
No new posts New PROC not reflecting in prod even ... Musab Ahmed CA Products 9 Tue Mar 15, 2016 12:45 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us