Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Functions in REXX to filter the dataset and GDG names

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: Functions in REXX to filter the dataset and GDG names
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: 8593
Location: Back in jolly old England

PostPosted: Fri May 15, 2009 12:33 pm    Post subject:
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    Post subject: Reply to: Functions in REXX to filter the dataset and GDG na
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: 8593
Location: Back in jolly old England

PostPosted: Fri May 15, 2009 1:05 pm    Post subject:
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    Post subject: Reply to: Functions in REXX to filter the dataset and GDG na
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: 8593
Location: Back in jolly old England

PostPosted: Fri May 15, 2009 2:55 pm    Post subject:
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    Post subject:
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    Post subject: Reply to: Functions in REXX to filter the dataset and GDG na
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    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 Unable to catalog a gdg dataset resid... Shovan JCL & VSAM 7 Fri Mar 24, 2017 2:24 pm
No new posts Want to pull the job log into a Mainf... Jishu Mukherjee Compuware & Other Tools 9 Tue Mar 21, 2017 4:48 pm
No new posts REXX cdoe to purge a JOB from spool a... Sulabh Agrawal CLIST & REXX 11 Thu Mar 09, 2017 11:36 am
No new posts Overriding PS data in rexx Shaheen Shaik CLIST & REXX 8 Fri Mar 03, 2017 5:08 pm
No new posts JCL to get submitted once dataset has... vinu78 JCL & VSAM 17 Thu Feb 16, 2017 7:32 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us