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
This topic is locked: you cannot edit posts or make replies. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm
No new posts REXX DB2: Dynamic allocation of DB2.D... BHAS CLIST & REXX 3 Mon Dec 19, 2016 8:26 pm
No new posts find particular member name in PDS us... ravi243 CLIST & REXX 10 Mon Dec 19, 2016 6:44 pm
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 7 Fri Nov 18, 2016 1:48 pm
No new posts FTP - JCL failed while passing FTP co... Suneetha1612 JCL & VSAM 12 Wed Nov 16, 2016 7:33 pm


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