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

Functions in REXX to filter the dataset and GDG names


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

Active User


Joined: 16 Apr 2009
Posts: 151
Location: India

PostPosted: Fri May 15, 2009 12:31 pm
Reply with quote

Hi!
Is there any functions in REXX to filter the only the dataset and GDG names from a PDS ?

Example:
AAAA.BBBB.CCCC.DDDD(QWERTY) - PDS

I need to filter all the dataset and GDG name from QWERTY
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Fri May 15, 2009 12:33 pm
Reply with quote

3.14
Back to top
View user's profile Send private message
HameedAli

Active User


Joined: 16 Apr 2009
Posts: 151
Location: India

PostPosted: Fri May 15, 2009 12:39 pm
Reply with quote

Hi! Expat,

3.14 -> is when I know what to search.
All I know is I have to filter the member QWERTY for dataset and GDG names.
I don't know what dataset or GDG name it contains.

I want to scan through the member to filter the dataset or GDG name it contains.
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Fri May 15, 2009 1:05 pm
Reply with quote

If you do not know what to search how can you expect to code it in REXX

If you thought about it what is the syntax for specifying a dataset name in JCL (I assume your PDS is a JCL PDS as you have not specified otherwise)

And what makes a GDS different from a normal dataset in JCL
Back to top
View user's profile Send private message
HameedAli

Active User


Joined: 16 Apr 2009
Posts: 151
Location: India

PostPosted: Fri May 15, 2009 2:49 pm
Reply with quote

Expat, I didn't state it explicitly. I have to search the data set names in the JCL. All the dataset names.

Assume the PDS AAAA.BBBB.CCCC.DDDD(QWERTY) is a JCL contains the following

................
DSN=qwer.asdas.zxzc
DSN=qwer.asdas.zxzc1
..................

I need to filter the following

qwer.asdas.zxzc
qwer.asdas.zxzc1

Is there any function in REXX for it?
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Fri May 15, 2009 2:55 pm
Reply with quote

Perhaps DSN= might be a pretty good string to search on, then you can parse the output to get your report.

And yes, it can all be done in REXX.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


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

PostPosted: Fri May 15, 2009 3:03 pm
Reply with quote

Quote:
I need to filter the following


you went from DSN=qwer.asdas.zxzc to qwer.asdas.zxzc

look at the PARSE REXX command.
Back to top
View user's profile Send private message
HameedAli

Active User


Joined: 16 Apr 2009
Posts: 151
Location: India

PostPosted: Fri May 15, 2009 3:24 pm
Reply with quote

Thanks Expat and dbzTHEdinosauer.
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 Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
No new posts run rexx code with jcl CLIST & REXX 15
Search our Forums:

Back to Top