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
 
deleting PS files using REXX

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: deleting PS files using REXX
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

Senior Member


Joined: 14 Mar 2007
Posts: 10535
Location: italy

PostPosted: Tue Apr 23, 2013 2:35 pm    Post subject: Reply to: deleting PS files using REXX
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    Post subject:
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

Senior Member


Joined: 14 Mar 2007
Posts: 10535
Location: italy

PostPosted: Tue Apr 23, 2013 2:51 pm    Post subject: Reply to: deleting PS files using REXX
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: 8735
Location: Welsh Wales

PostPosted: Tue Apr 23, 2013 3:41 pm    Post subject:
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: 2463
Location: Netherlands, Amstelveen

PostPosted: Tue Apr 23, 2013 3:55 pm    Post subject:
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: 1790
Location: Bloomington, IL

PostPosted: Tue Apr 23, 2013 6:30 pm    Post subject:
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: 714
Location: Pennsylvania

PostPosted: Tue Apr 23, 2013 6:58 pm    Post subject:
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

Site Director


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

PostPosted: Tue Apr 23, 2013 9:18 pm    Post subject:
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.    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 Will this code extract 1 byte from fi... pkmurali CLIST & REXX 8 Sat Nov 10, 2018 11:13 pm
No new posts Error reading file in REXX module ashek15 CLIST & REXX 3 Wed Oct 24, 2018 4:50 am
No new posts Anyone know how to copy Unix files? John Poulakos JCL & VSAM 7 Wed Oct 10, 2018 12:57 am
No new posts PL/I read error for HFS files Joe Kirsch PL/I & Assembler 6 Fri Sep 28, 2018 9:13 pm
No new posts Need help on the multiple files refor... wik123 DFSORT/ICETOOL 7 Wed Sep 19, 2018 10:47 am

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