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
 

 

How to delete the Member in PDS using REXX?

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

New User


Joined: 09 Oct 2007
Posts: 81
Location: India

PostPosted: Mon Sep 21, 2009 5:03 pm    Post subject: How to delete the Member in PDS using REXX?
Reply with quote

Dear Friends,
I wanted to delete the member in PDS, Where the PDS contains Load modules.

I used the command
"DELETE 'HLQ.IASP.XXXX.CICS.LOADLIB(LOAD1)'"

But im getting the following error:
DATA SET HLQ.IASP.XXXX.CICS.LOADLIB ALREADY IN USE, TRY LATER
DATA SET IS ALLOCATED TO ANOTHER JOB OR USER
** MEMBER LOAD1 NOT DELETED

But i can able to delete the member manually... icon_cry.gif

Is there any way to delete these types in REXX?
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10256
Location: italy

PostPosted: Mon Sep 21, 2009 5:07 pm    Post subject: Reply to: How to delete the Member in PDS using REXX?
Reply with quote

REXX itself has no built in delete capabilities, it relies on the operating system or environment features...

if running <standalone> use the appropriate tso commands ( DELETE ... )
if running under ISPF You can use ISPF library management facilities

to delete a single member, writing a REXX script is just a waste of time
Back to top
View user's profile Send private message
Manigandan Aravindhan

New User


Joined: 09 Oct 2007
Posts: 81
Location: India

PostPosted: Mon Sep 21, 2009 5:11 pm    Post subject:
Reply with quote

Hi Enrico,

The REXX script is just not to delete the single member, it does lots of stuff..... and deleting the member is one of that.....

Because of this issue the whole functionality is not working... icon_cry.gif
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10256
Location: italy

PostPosted: Mon Sep 21, 2009 5:31 pm    Post subject: Reply to: How to delete the Member in PDS using REXX?
Reply with quote

Quote:
The REXX script is just not to delete the single member, it does lots of stuff..... and deleting the member is one of that.....

where in <heaven> did You say that in the original request ??

the content of the dataset ( load or anything else is irrelevant )
usually all the commands which perform an internal dataset allocation
request an exclusive enq ( DISP OLD )

You might try, i said try, I have not tested it to allocate the library beforehand and then issue the delete using the FILE parameter
something along ...
Code:
Address TSO "ALLOC DA(your_pds) FI(arbddname) SHR REUSE"
Address TSO "DELETE your_pds(your_member) FILE(arbddname)

or, but You will need to review the whole REXX script, run under ISPF
and use as I said before the LMM... stuff
Back to top
View user's profile Send private message
Manigandan Aravindhan

New User


Joined: 09 Oct 2007
Posts: 81
Location: India

PostPosted: Mon Sep 21, 2009 5:43 pm    Post subject:
Reply with quote

What is "arbddname"?
Back to top
View user's profile Send private message
Manigandan Aravindhan

New User


Joined: 09 Oct 2007
Posts: 81
Location: India

PostPosted: Mon Sep 21, 2009 5:45 pm    Post subject:
Reply with quote

Oh thanks Enrico its working.... icon_smile.gif
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10256
Location: italy

PostPosted: Mon Sep 21, 2009 5:59 pm    Post subject: Reply to: How to delete the Member in PDS using REXX?
Reply with quote

arbddname ==> arbitrary/fantasy dd name
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. Need help on If condition continuatio... ashok_uddaraju CLIST & REXX 4 Fri May 19, 2017 8:55 am
No new posts member list compare jzhardy TSO/ISPF 6 Fri May 12, 2017 3:18 pm
No new posts Running an REXX EXEC implicitly sho7hills CLIST & REXX 3 Thu Apr 20, 2017 8:14 am
No new posts Need help in REXX CALL program Raje1002 CLIST & REXX 5 Wed Apr 19, 2017 11:18 pm
No new posts REXX cdoe to purge a JOB from spool a... Sulabh Agrawal CLIST & REXX 11 Thu Mar 09, 2017 11:36 am


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