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
 

 

JCL to list PROCs and Parms used in a set of jobs

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
Babu V P

New User


Joined: 27 Aug 2007
Posts: 6
Location: Chennai

PostPosted: Mon Dec 03, 2007 2:13 pm    Post subject: JCL to list PROCs and Parms used in a set of jobs
Reply with quote

Hi,
I need to list all the procs and parms used in my application (Around 100 jobs). Could anyone tell me what utility supports this? Instead of going and searching in each job, if a code is there to do that, that will be of great help.
Thanks in advance.
BoB
Back to top
View user's profile Send private message

murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1439
Location: Bangalore,India

PostPosted: Mon Dec 03, 2007 4:15 pm    Post subject:
Reply with quote

Babu,

Quote:
I need to list all the procs and parms used in my application (Around 100 jobs). Could anyone tell me what utility supports this?

Is there anything wrong with ISPF search facility?
Back to top
View user's profile Send private message
Babu V P

New User


Joined: 27 Aug 2007
Posts: 6
Location: Chennai

PostPosted: Tue Dec 04, 2007 10:23 am    Post subject: Reply to: JCL to list PROCs and Parms used in a set of jobs
Reply with quote

Hey there,
I need a code to do this, instead of using ISPF search facility.
Back to top
View user's profile Send private message
agkshirsagar

Active Member


Joined: 27 Feb 2007
Posts: 685
Location: Earth

PostPosted: Tue Dec 04, 2007 10:54 am    Post subject:
Reply with quote

I can write code for you but I need money to do this. Preferrably cash.. icon_lol.gif

If you want to write it yourself then suggestions will be offered for free.
Tell us more about your requirement so that we can offer better suggestions.
Back to top
View user's profile Send private message
Babu V P

New User


Joined: 27 Aug 2007
Posts: 6
Location: Chennai

PostPosted: Tue Dec 04, 2007 11:41 am    Post subject: Reply to: JCL to list PROCs and Parms used in a set of jobs
Reply with quote

Sounds great.. I have about 100 JCLs and each JCL will call atleast one PROC. Also, each PROC may use more than 2 Parms. I need to catch all Parms used by a particular PROC and all PROCs used by a particular JCL. And, this is i need for all the JCLs.

Any idea?
Back to top
View user's profile Send private message
agkshirsagar

Active Member


Joined: 27 Feb 2007
Posts: 685
Location: Earth

PostPosted: Tue Dec 04, 2007 4:18 pm    Post subject:
Reply with quote

If this is requirement is one time task then there is FILE-AID for your help. As it will give MEMBER name and the 'hit' as formatted o/p.

Finding procs-
Do a search on JCL for word 'EXEC'.
Exclude lines which contain word PGM (As you only want PROCS).

For parameters -
Parameters used in proc will be preceeded by &, so find for &.
Exclude lines with && as those will be temporary files.

This is first approach which came to my mind. I have tried to give you pointers. let me know if it was of any help.
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1439
Location: Bangalore,India

PostPosted: Tue Dec 04, 2007 4:26 pm    Post subject:
Reply with quote

Babu,

Quote:
Also, each PROC may use more than 2 Parms

Are your referring to PARM parameter or symbolic parameter.
Back to top
View user's profile Send private message
Babu V P

New User


Joined: 27 Aug 2007
Posts: 6
Location: Chennai

PostPosted: Tue Dec 04, 2007 4:43 pm    Post subject: Reply to: JCL to list PROCs and Parms used in a set of jobs
Reply with quote

Well! Its a repetetive task and so background option will be of great help. Let me know if you have suggestions.

Also, Parm i mean is parameter and not the symbolic.
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1439
Location: Bangalore,India

PostPosted: Tue Dec 04, 2007 5:45 pm    Post subject:
Reply with quote

Follow Abhijith suggestion with little modification for parms. Search for PARM instead of & (as suggested).
Back to top
View user's profile Send private message
nitishniki

New User


Joined: 27 Dec 2007
Posts: 10
Location: Banglore

PostPosted: Wed Jul 02, 2008 9:34 pm    Post subject: big problem
Reply with quote

hi all,
i have similar but different problem, i have a jcl which is passing 64 values as parameter to a focus program.
now i have to productionise it. So i have to make a seperate jcl and have to call proc and i have to pass parameter to program, tru proc,we can't put all the parameter in the proc sysin it won't resolve.
can anybody suggest the right way to do it.
thanks in advance icon_arrow.gif
Back to top
View user's profile Send private message
agkshirsagar

Active Member


Joined: 27 Feb 2007
Posts: 685
Location: Earth

PostPosted: Fri Jul 04, 2008 6:15 pm    Post subject:
Reply with quote

Use a dataset for SYSIN instead of instream data.
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SQL query to run through list of valu... Ni3-db2 DB2 14 Wed Dec 14, 2016 9:52 am
No new posts Cobol list of programs being called biswajit.dattagupta COBOL Programming 5 Tue Nov 01, 2016 2:10 am
No new posts How to show message using batch jobs madprasy TSO/ISPF 7 Fri Sep 09, 2016 6:55 pm
No new posts reorder screeNS using SWAP LIST? mrsidhu12 TSO/ISPF 5 Thu Sep 01, 2016 2:19 pm
No new posts Getting list of tables defined under ... kishpra DB2 2 Wed Aug 24, 2016 10:36 am


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