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: 10210
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: 10210
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: 10210
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. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm
No new posts REXX DB2: Dynamic allocation of DB2.D... BHAS CLIST & REXX 3 Mon Dec 19, 2016 8:26 pm
No new posts find particular member name in PDS us... ravi243 CLIST & REXX 10 Mon Dec 19, 2016 6:44 pm
No new posts JCL to delete component in a package sundaram.naveen Compuware & Other Tools 14 Tue Nov 29, 2016 6:21 pm
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 7 Fri Nov 18, 2016 1:48 pm


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