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
 

 

Search a Load Module

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
sreekanth1984

New User


Joined: 23 Mar 2010
Posts: 22
Location: Bangalore

PostPosted: Tue Jun 07, 2016 8:45 pm    Post subject: Search a Load Module
Reply with quote

Hi, I have a requirement, where I need to find a load module present in all the pds's in the system. Is there a way to achieve this. I know the load module and need to list out all the PDS's the load resides.

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

Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 1714
Location: UK

PostPosted: Tue Jun 07, 2016 8:52 pm    Post subject:
Reply with quote

If you have a library management/change control system then use its builtin enquiry software. If not then you need to collect a list of all load libraries, for every user, every application every etc. and start querying them. Do you need to query the system libraries? You were not exactly specific in your requirement.

You posted in the TSO/ISPF section so do you only want libraries attached to TSO? In which case, learn about ISRDDN.
Back to top
View user's profile Send private message
Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 2019
Location: Silicon Valley

PostPosted: Tue Jun 07, 2016 9:47 pm    Post subject: Reply to: Search a Load Module
Reply with quote

This is an unrealistic requirement.

Nonetheless, this is how I would approach it:

1. Use LISTCAT command to list all of the aliases defined on the system

2. For each alias, use LISTCAT command to get a list of data sets.

3. For each data set, issue LISTDSI function (with NORECALL) and examine the SYSDSORG and SYSRECFM variables.

4. when SYSDSORG=PO and SYSRECFM=U, issue the SYSDSN('some.pds(mymember)') function to determine if the member exists.

An alternative to #1 is to use RACF commands to list all of the userids and all of the group names and search those high level qualifiers.

That reminds me... you will probably run into various authority problems trying to examine all of those data sets.
Back to top
View user's profile Send private message
sreekanth1984

New User


Joined: 23 Mar 2010
Posts: 22
Location: Bangalore

PostPosted: Tue Jun 07, 2016 9:54 pm    Post subject:
Reply with quote

Thank You Nic, Pedro. The information provided is really useful and I can reach a conclusion based on this information.
Back to top
View user's profile Send private message
Willy Jensen

New User


Joined: 01 Sep 2015
Posts: 96
Location: Switzerland

PostPosted: Thu Jun 09, 2016 6:26 pm    Post subject:
Reply with quote

I have written a utility to id every member name in a system, so it is possible.

One way to go about it:
Get the VTOC command from CBTTAPE.ORG, with that you can get a list of all PDS(E)s in the system.
Feed that list into a step which changes the list into a PDS86 ATTR name command (PDS86 is also found in CBTTAPE.ORG) and run PDS86.
Filter output from the PDS86 command.
Just be aware that it will take a loooong time to run. And as stated above you will most likely get a lot security messages.
Back to top
View user's profile Send private message
steve-myers

Active User


Joined: 30 Nov 2013
Posts: 461
Location: The Universe

PostPosted: Thu Jun 09, 2016 7:51 pm    Post subject:
Reply with quote

I can echo Mr. Jensen's comment on the time. Several years ago I wrote a utility to check on PDS directory sizes. I was curious about how large the directories were. The userid that ran the utility had RACF "operations" so permissions were not an issue, but it did run a long time. By the way, the answer was, on average, not very large at all.

Just one additional thought: in filtering the data sets you're going to examine, check for RECFM = U to just examine load module data sets.
Back to top
View user's profile Send private message
Rohit Umarjikar

Senior Member


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

PostPosted: Thu Jun 09, 2016 8:23 pm    Post subject:
Reply with quote

Quote:
I have a requirement, where I need to find a load module present in all the pds's in the system.


Why do you need to search the whole firms libs? Usually the modules are named based on the applications they fall under. But anyways why do you need that as you could give your load lib as the way you want in the job and if you talk about cics then look for the libs in DFHRPL step of the job or WLM in case of Stored Procedures to minimize the efforts. Because you may get thousands of dataset to search for so narrow down as much as you can.
We have MBRXREF (PDS Member Cross Reference for z/OS) of UFD AG and that is paid one and you want to make similar one for free but too many considerations you got to take into account.
Google 'PDS Member Cross Reference for z/OS' and see first few 3-4 links and look if they help.
Back to top
View user's profile Send private message
prino

Active Member


Joined: 07 Feb 2009
Posts: 982
Location: Oostende, Belgium

PostPosted: Thu Jun 09, 2016 9:18 pm    Post subject:
Reply with quote

Quote:
Hi, I have a requirement, where I need to find a load module present in all the pds's in the system.

Which totally imbecile clueless idiotic has given you this requirement? Or

{sarcasm}
do you just want to find a particular load module yourself, but don't want to tell us you're the one who came up with this "requirement"?
{/sarcasm}

BTW, if it's present in all the PDS'es in the system, you have already found it.
Back to top
View user's profile Send private message
RahulG31

Active User


Joined: 20 Dec 2014
Posts: 331
Location: USA

PostPosted: Thu Jun 09, 2016 9:36 pm    Post subject: Reply to: Search a Load Module
Reply with quote

Quote:
I need to find a load module present in all the pds's in the system

Couldn't agree more with Prino icon_biggrin.gif

.
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 -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Need Rexx Program to Load in to DB2 T... Hareesh Verma CLIST & REXX 22 Tue Sep 20, 2016 2:59 pm
No new posts Copybook structure in Load module Vai123 COBOL Programming 7 Fri Sep 16, 2016 8:29 pm
This topic is locked: you cannot edit posts or make replies. ERROR WHILE SUBMITTING LOAD JOB ANURADHA NEELAKANTAN JCL & VSAM 12 Thu Aug 25, 2016 11:50 am
No new posts Execute multiple DB2 Load commands in... faizm DB2 4 Wed Aug 03, 2016 12:53 pm
No new posts How to get the program name of callin... pkmurali COBOL Programming 8 Mon Aug 01, 2016 3:36 am


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