View previous topic :: View next topic
|
Author |
Message |
HameedAli
Active User
Joined: 16 Apr 2009 Posts: 151 Location: India
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
3.14 |
|
Back to top |
|
|
HameedAli
Active User
Joined: 16 Apr 2009 Posts: 151 Location: India
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 |
|
|
HameedAli
Active User
Joined: 16 Apr 2009 Posts: 151 Location: India
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
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 |
|
|
HameedAli
Active User
Joined: 16 Apr 2009 Posts: 151 Location: India
|
|
|
|
Thanks Expat and dbzTHEdinosauer. |
|
Back to top |
|
|
|