IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

REXX tool to extract file name from PDS


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
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
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

Global Moderator


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

PostPosted: Wed Mar 25, 2009 10:34 pm
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
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

Global Moderator


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

PostPosted: Wed Mar 25, 2009 11:10 pm
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
Reply with quote

Hi Pedro,

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

Superior Member


Joined: 14 Mar 2007
Posts: 10886
Location: italy

PostPosted: Wed Mar 25, 2009 11:48 pm
Reply with quote

haven' t You just got a solution for the same requirement in Your other topic
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
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: 2358
Location: Israel

PostPosted: Thu Mar 26, 2009 11:30 am
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
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

Superior Member


Joined: 14 Mar 2007
Posts: 10886
Location: italy

PostPosted: Thu Mar 26, 2009 4:27 pm
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
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: 1353
Location: Israel

PostPosted: Wed Apr 01, 2009 7:52 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Does anyone know rexx for VSE CLIST & REXX 3
No new posts Unable to interpret a hex value to De... COBOL Programming 4
No new posts TSO ALLOC In REXX Needs Improvement JCL & VSAM 3
No new posts REXX/CMS How to place command console... CLIST & REXX 4
No new posts Help needed in automation cics transa... CLIST & REXX 1
Search our Forums:

Back to Top