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
 
Search for a member in the PDS( Partioned Data Set)

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: Search for a member in the PDS( Partioned Data Set)
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: 456
Location: Belgium

PostPosted: Sun Apr 19, 2009 9:29 pm    Post subject:
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    Post subject:
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: 6968
Location: porcelain throne

PostPosted: Sun Apr 19, 2009 9:38 pm    Post subject: Reply to: Rexx code
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    Post subject:
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: 456
Location: Belgium

PostPosted: Sun Apr 19, 2009 9:58 pm    Post subject:
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    Post subject:
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: 6968
Location: porcelain throne

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

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

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

Senior Member


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

PostPosted: Mon Apr 20, 2009 9:00 am    Post subject: Reply to: Search for a member in the PDS( Partioned Data Set
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Mon Apr 20, 2009 2:22 pm    Post subject:
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

Senior Member


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

PostPosted: Tue Apr 21, 2009 9:28 pm    Post subject: Reply to: Search for a member in the PDS( Partioned Data Set
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    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts opening a dataset after reading it fr... arunsoods DFSORT/ICETOOL 5 Wed Oct 04, 2017 3:54 pm
No new posts HEX value search in a DB2 query maxsubrat DB2 2 Wed Oct 04, 2017 3:04 pm
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 File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us