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
 
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: 10457
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: 10457
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: 10457
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. GDG gen check using REXX raghuraman123 CLIST & REXX 6 Wed Apr 18, 2018 9:18 pm
No new posts How to control Panel Attributes throu... rsshanmugam CLIST & REXX 3 Mon Feb 26, 2018 9:51 pm
No new posts Find a string in PS file opened in br... mukkas CLIST & REXX 3 Sat Feb 24, 2018 2:15 pm
This topic is locked: you cannot edit posts or make replies. how to get Job information from IOF u... rsshanmugam CLIST & REXX 13 Mon Feb 05, 2018 4:22 pm
No new posts load and delete table through JCL wit... ram_vizag JCL & VSAM 9 Thu Feb 01, 2018 12:47 am

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