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
 
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: 8657
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: 8657
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: 8657
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: 6970
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
This topic is locked: you cannot edit posts or make replies. GDG gen check using REXX raghuraman123 CLIST & REXX 6 Wed Apr 18, 2018 9:18 pm
No new posts How to list data set names with diffe... murali.andaluri CLIST & REXX 8 Thu Apr 12, 2018 11:33 pm
No new posts How could i share my personal dataset... James Halley TSO/ISPF 1 Fri Mar 23, 2018 9:41 pm
This topic is locked: you cannot edit posts or make replies. How could i share my personal dataset... samenxia163 TSO/ISPF 1 Fri Mar 09, 2018 12:18 pm
No new posts How to control Panel Attributes throu... rsshanmugam CLIST & REXX 3 Mon Feb 26, 2018 9:51 pm

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