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

Search for a member in the PDS( Partioned Data Set)


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
praveensn

New User


Joined: 30 Jul 2008
Posts: 32
Location: Pune

PostPosted: Sun Apr 19, 2009 9:04 pm
Reply with quote

Hi,

I had a query to search for a member in the PDS( Partioned Data Set).

There are 2 inputs:
1)Member name abcd4
2)Group of PDS which is having a list of members.


Ex: PDS1: COMPTE.REXX.MEMBERS
and the members inside it are
abcd2
abcd3
abcd4

PDS2: COMPTE.REXX.MEMBERS1

Members are:

abcd5
abcd6
abcd7

Similarly so on.

Now the requirement is to search for the member 'abcd4' in all the PDS.

Suppose abcd5 might be calling abcd4 internally.

The ouput should be:
The PDS where the member is present followed by the member names where the member 'abcd4' is present.

For ex: Output:

COMPTE.REXX.MEMBERS abcd4
COMPTE.REXX.MEMBERS1:abcd5


Thanks,
Praveen.
Back to top
View user's profile Send private message
PeD

Active User


Joined: 26 Nov 2005
Posts: 459
Location: Belgium

PostPosted: Sun Apr 19, 2009 9:29 pm
Reply with quote

Do you ask someone to provide the code?
Or do you have a problem with your code?
Back to top
View user's profile Send private message
praveensn

New User


Joined: 30 Jul 2008
Posts: 32
Location: Pune

PostPosted: Sun Apr 19, 2009 9:36 pm
Reply with quote

Hi,

I need a rexx code for this reqirement.

Also, provide me the suggestions or other options by which i can solve this...


Thanks,
Praveen.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


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

PostPosted: Sun Apr 19, 2009 9:38 pm
Reply with quote

sounds as if you have two searches going on:

1. find pds member named abcd4

2. find any member that calls abcd4
Back to top
View user's profile Send private message
praveensn

New User


Joined: 30 Jul 2008
Posts: 32
Location: Pune

PostPosted: Sun Apr 19, 2009 9:50 pm
Reply with quote

Hi,

Yes.

The requirment is to search for the member name specified in all the PDS given.


Thanks,
Praveen.
Back to top
View user's profile Send private message
PeD

Active User


Joined: 26 Nov 2005
Posts: 459
Location: Belgium

PostPosted: Sun Apr 19, 2009 9:58 pm
Reply with quote

Why can't you code this?

Where is your difficulty? REXX ( from begining? )? EXECIO? ISPF LMLIST? Other?
Back to top
View user's profile Send private message
praveensn

New User


Joined: 30 Jul 2008
Posts: 32
Location: Pune

PostPosted: Sun Apr 19, 2009 10:05 pm
Reply with quote

Hi,

REXX from begining...

Also please suggest some goods books and links so that i cn refer it for REXX knowlwdge...

Thanks,
Praveen.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


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

PostPosted: Sun Apr 19, 2009 11:26 pm
Reply with quote

www.ibmsystemsmag.com/mainframe/septemberoctober08/tipstechniques/21720p1.aspx

home.roadrunner.com/~mvsrexx/REXX/
Back to top
View user's profile Send private message
Pedro

Global Moderator


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

PostPosted: Mon Apr 20, 2009 9:00 am
Reply with quote

How many datasets do you have to search?

The SRCHFOR utility of ISPF lets you search a concatenation of PDS datasets. And the results say which member of the concatenation includes the text. At the end of the report is the list of datasets searched. So, just concatenate them in your JCL and call the utility.

I ask how many datasets because I recall ISPF used to have a limit of datasets in concatentation it supported. If you have a lot, please try and lets us know the result.
Back to top
View user's profile Send private message
praveensn

New User


Joined: 30 Jul 2008
Posts: 32
Location: Pune

PostPosted: Mon Apr 20, 2009 9:37 am
Reply with quote

Hi,

Thanks:)

There are 2 datasets.
Could you please provide me the REXX code for that.


Thanks,
Praveen.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Mon Apr 20, 2009 2:22 pm
Reply with quote

Quote:
Could you please provide me the REXX code for that.

The best way to learn is to try it yourself and learn from your mistakes. Much better than asking for code.

If you have problems with your code, post here and get some help then.
Back to top
View user's profile Send private message
Pedro

Global Moderator


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

PostPosted: Tue Apr 21, 2009 9:28 pm
Reply with quote

1. use ISPF option 3.14, selecting 'batch' execution and 'edit JCL before submit'

2. pay close attention to DD names, program name, program parameters, control cards.

3. read rexx reference manual regarding LINKMVS.

4. in rexx, re-create the environment needed by ISRSUPC through ALLOC, EXECIO, and LINKMVS.
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 -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts How to save SYSLOG as text data via P... All Other Mainframe Topics 3
No new posts Store the data for fixed length COBOL Programming 1
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 Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
Search our Forums:

Back to Top