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

How to delete the Member in PDS using REXX?


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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Sep 21, 2009 5:07 pm
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
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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Sep 21, 2009 5:31 pm
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
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
Reply with quote

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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Sep 21, 2009 5:59 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
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 DELETE SPUFI DB2 1
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
Search our Forums:

Back to Top