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

deleting PS files using REXX


IBM Mainframe Forums -> CLIST & REXX
Post new topic   This topic is locked: you cannot edit posts or make replies.
View previous topic :: View next topic  
Author Message
d katkuri

New User


Joined: 27 Feb 2013
Posts: 16
Location: india

PostPosted: Tue Apr 23, 2013 2:28 pm
Reply with quote

I will get a list of cataloged datasets in a PS file . Then I want to search through the JCL/PROC libraries to see if those datasets are REFERENCED by the JCL/PROC?

If I don't find any reference, then you want to remove the dataset?

Could you please let me know how to achieve this task
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Tue Apr 23, 2013 2:35 pm
Reply with quote

again ...
be more detailed about the help You need....

the requirement is so specific that You risk to get just generic replies

read the ISPF manuals on how to invoke the SRCHFOR utility Thru rexx

search the forum and/or google for REXX ISRSUPC
Back to top
View user's profile Send private message
d katkuri

New User


Joined: 27 Feb 2013
Posts: 16
Location: india

PostPosted: Tue Apr 23, 2013 2:46 pm
Reply with quote

Requireemnt:
----------------

PS file:
abc.d1 - dataset
abc.d2 - dataset
abc.d3 - daaset

i need to read each dataset name in a PS file and search in production lib - corp.jcl.lib nad if the dataset is not there in the production LIb then i need to delete the abc.d1 dataset.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Tue Apr 23, 2013 2:51 pm
Reply with quote

stop repeating the same thing over and over.

do not expect anybody to provide You with a ready to run solution !

did You care to read my previous post on what to search ?
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Apr 23, 2013 3:41 pm
Reply with quote

And why for the love of God don't you just ask your storage management people to do their jobs properly in ONE hit rather than have someone else running around into eternity chasing spurious datasets through PROCLIBs and JCLLIBs.

ONE single and simple solution resolves this for the rest of time.
Why do you not follow that route instead

36_2_18.gif

Oh, I know ........... It's the requirement
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Tue Apr 23, 2013 3:55 pm
Reply with quote

It is a shame that people like the TS work in ICT and waste our time.
And always under the pretext that it is the requirement.
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1788
Location: Bloomington, IL

PostPosted: Tue Apr 23, 2013 6:30 pm
Reply with quote

expat wrote:
And why for the love of God don't you just ask your storage management people to do their jobs properly in ONE hit rather than have someone else running around into eternity chasing spurious datasets through PROCLIBs and JCLLIBs.

She probably is the storage management workgroup lead.
Back to top
View user's profile Send private message
daveporcelan

Active Member


Joined: 01 Dec 2006
Posts: 792
Location: Pennsylvania

PostPosted: Tue Apr 23, 2013 6:58 pm
Reply with quote

You may miss the dataset if it is in a PROCLIB and the dataset name has a Symbolic parameter that is not resolved until execution time.

We have a product to expand our Jobs to resolve these symbolics, so that proper searches can be done.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Apr 23, 2013 9:18 pm
Reply with quote

Duplicate - locked.

The "other" topic has more dialog.

d
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   This topic is locked: you cannot edit posts or make replies. View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
No new posts run rexx code with jcl CLIST & REXX 15
No new posts Write line by line from two files DFSORT/ICETOOL 7
Search our Forums:

Back to Top