arvibala Beginner

Joined: 12 Feb 2008 Posts: 142 Topics: 67
|
Posted: Mon Aug 11, 2008 8:17 am Post subject: Delete Members in a dataset |
|
|
Hi,
We have a common dataset, lets say DATASET.TEST.MEMBERS. We used to process some members and manually delete it. Then it was automated using a code which automatically deletes it if processed successfully. When I saw the dymamic code it was like this
//DEL0001 EXEC PGM=IDCAMS,COND=(5,LE)
//SYSPRINT DD SYSOUT=*
DELETE DATASET.TEST.MEMBERS(MEM1)
IF MAXCC EQ 8 THEN SET MAXCC = 0
/*
Problem here is, if any one is present inside this dataset, the member is not getting deleted when the code runs.
Can we have a solution in IDCAMS, where the members can be deleted even if the dataset is accessed by anyother user? _________________ Arvind
"You can make a difference with your smile. Have that with you always" |
|