View previous topic :: View next topic
|
Author |
Message |
Manigandan Aravindhan
New User
Joined: 09 Oct 2007 Posts: 81 Location: India
|
|
|
|
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...
Is there any way to delete these types in REXX? |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
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 |
|
|
Manigandan Aravindhan
New User
Joined: 09 Oct 2007 Posts: 81 Location: India
|
|
|
|
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... |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
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 |
|
|
Manigandan Aravindhan
New User
Joined: 09 Oct 2007 Posts: 81 Location: India
|
|
|
|
What is "arbddname"? |
|
Back to top |
|
|
Manigandan Aravindhan
New User
Joined: 09 Oct 2007 Posts: 81 Location: India
|
|
|
|
Oh thanks Enrico its working.... |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
arbddname ==> arbitrary/fantasy dd name |
|
Back to top |
|
|
|