View previous topic :: View next topic |
Author |
Message |
arvibala Beginner

Joined: 12 Feb 2008 Posts: 142 Topics: 67
|
Posted: Tue Jan 27, 2009 2:26 pm Post subject: IDCAMS - DELETE option |
|
|
Hi,
I create Dynamic PARM to delete members from a PDS. My PARM looks like this.
DELETE HLQ.MLQ(MEM1)
DELETE HLQ.MLQ(MEM2)
The problem is when this DELETE step gets executed, if some programmer is using the library HLQ.MLQ, my members MEM1 and MEM2 are not getting deleted. Do we have any command which does this? Pls help
Thanks, _________________ Arvind
"You can make a difference with your smile. Have that with you always" |
|
Back to top |
|
 |
Nic Clouston Advanced
Joined: 01 Feb 2007 Posts: 1075 Topics: 7 Location: At Home
|
Posted: Tue Jan 27, 2009 2:46 pm Post subject: |
|
|
Use DISP=OLD on the PDS is one way _________________ Utility and Program control cards are NOT, repeat NOT, JCL. |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12377 Topics: 75 Location: San Jose
|
Posted: Tue Jan 27, 2009 4:10 pm Post subject: |
|
|
arvibala,
Use the parm FILE on DELETE. This will delete the member even if someone is editing it
ex:
Code: |
//DELPMEM EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//PDS DD DISP=SHR,DSN=YOUR PDS
//SYSIN DD *
DELETE 'YOUR.PDS(membername)' FILE(PDS)
/* |
|
|
Back to top |
|
 |
|
|