View previous topic :: View next topic
|
Author |
Message |
praveensn
New User
Joined: 30 Jul 2008 Posts: 32 Location: Pune
|
|
|
|
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 |
|
|
PeD
Active User
Joined: 26 Nov 2005 Posts: 459 Location: Belgium
|
|
|
|
Do you ask someone to provide the code?
Or do you have a problem with your code? |
|
Back to top |
|
|
praveensn
New User
Joined: 30 Jul 2008 Posts: 32 Location: Pune
|
|
|
|
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 |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
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 |
|
|
praveensn
New User
Joined: 30 Jul 2008 Posts: 32 Location: Pune
|
|
|
|
Hi,
Yes.
The requirment is to search for the member name specified in all the PDS given.
Thanks,
Praveen. |
|
Back to top |
|
|
PeD
Active User
Joined: 26 Nov 2005 Posts: 459 Location: Belgium
|
|
|
|
Why can't you code this?
Where is your difficulty? REXX ( from begining? )? EXECIO? ISPF LMLIST? Other? |
|
Back to top |
|
|
praveensn
New User
Joined: 30 Jul 2008 Posts: 32 Location: Pune
|
|
|
|
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 |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
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 |
|
|
praveensn
New User
Joined: 30 Jul 2008 Posts: 32 Location: Pune
|
|
|
|
Hi,
Thanks:)
There are 2 datasets.
Could you please provide me the REXX code for that.
Thanks,
Praveen. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
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 |
|
|
|