IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Search a Load Module


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
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
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: 2455
Location: Hampshire, UK

PostPosted: Tue Jun 07, 2016 8:52 pm
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

Global Moderator


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

PostPosted: Tue Jun 07, 2016 9:47 pm
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
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

Active Member


Joined: 01 Sep 2015
Posts: 712
Location: Denmark

PostPosted: Thu Jun 09, 2016 6:26 pm
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 Member


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

PostPosted: Thu Jun 09, 2016 7:51 pm
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

Global Moderator


Joined: 21 Sep 2010
Posts: 3049
Location: NYC,USA

PostPosted: Thu Jun 09, 2016 8:23 pm
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

Senior Member


Joined: 07 Feb 2009
Posts: 1306
Location: Vilnius, Lithuania

PostPosted: Thu Jun 09, 2016 9:18 pm
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 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: 446
Location: USA

PostPosted: Thu Jun 09, 2016 9:36 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts Load new table with Old unload - DB2 DB2 6
No new posts Search two or more word with FILEAID Compuware & Other Tools 15
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
No new posts How to load to DB2 with column level ... DB2 6
No new posts REASON 00D70014 in load utility DB2 6
Search our Forums:

Back to Top