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
 

 

REXX tool to extract file name from PDS

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
himanshu7

Active User


Joined: 28 Aug 2007
Posts: 131
Location: At Desk

PostPosted: Wed Mar 25, 2009 10:31 pm    Post subject: REXX tool to extract file name from PDS
Reply with quote

Hi All,

Can we create a rexx tool to extract all the file name which start with &xxx.abc from a PDS which has n number of proc(mem) using those file name.

I mean i want to scan the PDS for the Particular file Name.
Back to top
View user's profile Send private message

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Wed Mar 25, 2009 10:34 pm    Post subject: Reply to: REXX tool to extract file name from PDS
Reply with quote

The answer, I think, is yes, but why can't you use a SUPERC search to obtain the same results?
Back to top
View user's profile Send private message
himanshu7

Active User


Joined: 28 Aug 2007
Posts: 131
Location: At Desk

PostPosted: Wed Mar 25, 2009 10:38 pm    Post subject:
Reply with quote

I have done that however I just want to filter out all the unnecessary which comes along with the SUPC o/p.

I mean i want to somehow automate the tool and after scanning i want to take those o/p files for further processing and not the entire data which comes along with the SUPC.
Back to top
View user's profile Send private message
Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 2025
Location: Silicon Valley

PostPosted: Wed Mar 25, 2009 11:10 pm    Post subject: Reply to: REXX tool to extract file name from PDS
Reply with quote

Please clarify what you mean by 'file name'. I suspect you mean DD name, but you might also mean dataset name.
Back to top
View user's profile Send private message
himanshu7

Active User


Joined: 28 Aug 2007
Posts: 131
Location: At Desk

PostPosted: Wed Mar 25, 2009 11:12 pm    Post subject:
Reply with quote

Hi Pedro,

I mean the Dataset name
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10210
Location: italy

PostPosted: Wed Mar 25, 2009 11:48 pm    Post subject: Reply to: REXX tool to extract file name from PDS
Reply with quote

haven' t You just got a solution for the same requirement in Your other topic
http://www.ibmmainframes.com/viewtopic.php?t=39189&highlight=

??
Back to top
View user's profile Send private message
himanshu7

Active User


Joined: 28 Aug 2007
Posts: 131
Location: At Desk

PostPosted: Thu Mar 26, 2009 9:33 am    Post subject:
Reply with quote

Hi Enrico,

I have got but still trying to get it through REXX tool as well..
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Thu Mar 26, 2009 11:30 am    Post subject:
Reply with quote

You can invoke SUPERC from within REXX, then manipulate OUTDD from the same REXX.

O.
Back to top
View user's profile Send private message
himanshu7

Active User


Joined: 28 Aug 2007
Posts: 131
Location: At Desk

PostPosted: Thu Mar 26, 2009 4:18 pm    Post subject:
Reply with quote

Hi,
Invoking supc from rexx will get the other values as well in which im not interested.

I want toget only the file name.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10210
Location: italy

PostPosted: Thu Mar 26, 2009 4:27 pm    Post subject: Reply to: REXX tool to extract file name from PDS
Reply with quote

look like You do not care to understand what is being suggested

proceed like in the dfsort case

instead of processing the result with sort process it with rexx
Back to top
View user's profile Send private message
himanshu7

Active User


Joined: 28 Aug 2007
Posts: 131
Location: At Desk

PostPosted: Wed Apr 01, 2009 6:17 pm    Post subject:
Reply with quote

Thank you guys!!!!

I have created a DFSORT tool to achieve the same....
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1224
Location: Israel

PostPosted: Wed Apr 01, 2009 7:52 pm    Post subject:
Reply with quote

himanshu7 wrote:
I have done that however I just want to filter out all the unnecessary which comes along with the SUPC o/p.

I mean i want to somehow automate the tool and after scanning i want to take those o/p files for further processing and not the entire data which comes along with the SUPC.


ISRSUPC has some options that allows you to minimize most of the "unnecessary":
  • IDPFX Identifier prefixed. ID or member-name is prefixed to the search string lines of the listing.
  • NOPRTCC No printer control columns... NOPRTCC eliminates both the page separators and control column 1.
  • NOSUMS No summary listing section. This option omits the summary section including the statistics, options, warning, and error messages from the listing output.
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 SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 0 Tue Jan 17, 2017 4:26 pm
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 Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 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


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