Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
PROC to JCL mapping

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

New User


Joined: 16 Aug 2011
Posts: 3
Location: India

PostPosted: Tue Dec 08, 2015 12:37 pm    Post subject: PROC to JCL mapping
Reply with quote

Hi Guys,

I am trying to map the procedures in the procedure library to the corresponding JCLs from which they are executed. I have a lot of procedures. Can you suggest me how can I find for each procedure the corresponding JCLs from where the Procedure is being called.

Thanks
Sam
Back to top
View user's profile Send private message

PeterHolland

Global Moderator


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

PostPosted: Tue Dec 08, 2015 12:39 pm    Post subject:
Reply with quote

Scan your JCL libraries.
Back to top
View user's profile Send private message
jena_samirkumar

New User


Joined: 16 Aug 2011
Posts: 3
Location: India

PostPosted: Tue Dec 08, 2015 12:41 pm    Post subject:
Reply with quote

I don't want to do it manually as I have a lot of procs.I want some JCL or any other idea to do it automatically.
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


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

PostPosted: Tue Dec 08, 2015 1:30 pm    Post subject:
Reply with quote

Quote:
I don't want to do it manually as I have a lot of procs.I want some JCL or any other idea to do it automatically.


Search the forum, as far as I know there will be examples here.
Back to top
View user's profile Send private message
Abid Hasan

New User


Joined: 25 Mar 2013
Posts: 86
Location: India

PostPosted: Tue Dec 08, 2015 1:45 pm    Post subject: Reply to: PROC to JCL mapping
Reply with quote

In-line with what Peter has pointed out, the output of ISPF 3.15 (Search-ForE) can be something you might want to look at; that as input to a small REXX or DFSORT or any utility of your choice for reformatting data will give you what you're looking for.

Hth.
Back to top
View user's profile Send private message
Garry Carroll

Senior Member


Joined: 08 May 2006
Posts: 1002
Location: Dublin, Ireland / Edinburgh, Scotland

PostPosted: Tue Dec 08, 2015 3:38 pm    Post subject:
Reply with quote

You could modify the sample given in DFSort Smart Tricks for deleting all members of a PDS.

Instead of generating DELETE statements, generate SRCHFOR statements and pass the results into a step which runs ISRSUPC against a concatenation of your JCL libraries.

Garry
Back to top
View user's profile Send private message
Rohit Umarjikar

Senior Member


Joined: 21 Sep 2010
Posts: 1817
Location: NY,USA

PostPosted: Wed Dec 09, 2015 12:38 am    Post subject:
Reply with quote

1.You can place all proc name one by one as a record in a PS file
2.Write a rexx to read this file and read one by one and search in JCL lib and find the member name and write to output
Google for 'read file and scan pds rexx' to get the source code

Or try it reverse way , get the JCL names and procs corresponds to it as done here.
Back to top
View user's profile Send private message
Willy Jensen

Active User


Joined: 01 Sep 2015
Posts: 171
Location: Switzerland

PostPosted: Wed Dec 09, 2015 1:49 am    Post subject:
Reply with quote

No easy solution as far as I am aware, which is why there are commercial products out there, and even they are sometimes failing. One alternative which springs to mind is to read all your executed jobs while still in spool using the SDSF API and then scan for the appropriate messages (xxx expanded from...)
Back to top
View user's profile Send private message
Garry Carroll

Senior Member


Joined: 08 May 2006
Posts: 1002
Location: Dublin, Ireland / Edinburgh, Scotland

PostPosted: Wed Dec 09, 2015 2:00 am    Post subject:
Reply with quote

Suggest my approach as quite easy. I adapted the sample mentioned in about 15 mins to meet the requirements, I believe. ISRSUPC step can take multiple JCLLIBS to scan. A tiny further effort to modify the first step is needed if multiple PROCLIBS are involved.

Garry.
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


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

PostPosted: Wed Dec 09, 2015 12:09 pm    Post subject:
Reply with quote

Quote:
I adapted the sample mentioned


I hope you also included a test for "PROC=".
Back to top
View user's profile Send private message
jena_samirkumar

New User


Joined: 16 Aug 2011
Posts: 3
Location: India

PostPosted: Wed Dec 09, 2015 12:24 pm    Post subject:
Reply with quote

Hi Gary,
Is it possible to post the JCL to delete all member of PDS.I am not able to get a copyof the DFSORT smart trick pdf.
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


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

PostPosted: Wed Dec 09, 2015 3:22 pm    Post subject:
Reply with quote

jena_samirkumar, till now your only input was can i get some JCL or code.

Maybe you start doing/trying something yourself?

Being a software engineer, ex IBM employee with JCL and REXX skills.
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 1922
Location: UK

PostPosted: Wed Dec 09, 2015 7:44 pm    Post subject:
Reply with quote

The DFSort Smart Tricks is linked to in this and/or the sister forum in the DFsort section so saying you cannot get hold of same is saying that you have not tried.
Back to top
View user's profile Send private message
Garry Carroll

Senior Member


Joined: 08 May 2006
Posts: 1002
Location: Dublin, Ireland / Edinburgh, Scotland

PostPosted: Wed Dec 09, 2015 8:25 pm    Post subject:
Reply with quote

Quote:
I hope you also included a test for "PROC=".


Yes, that's quite easy, too. Just generate both "EXEC procename" and "EXEC PROC=procname" control cards for each - a simple thing to do in DFSORT.

Since the Smart Tricks pdf is freely available, I'm surprised it can't be downloaded. I'm not prepared to just hand over a solution - helping correct a problem one is a different matter.

Garry.
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
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts LIBDEF not working in called proc packerm CLIST & REXX 0 Fri Sep 15, 2017 7:22 pm
No new posts REXX to view the PGM or PROC jackzhang75 CLIST & REXX 11 Tue Jun 20, 2017 1:20 am
No new posts Jcl pram vs proc parms ashek15 JCL & VSAM 3 Thu Mar 30, 2017 6:50 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
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us