MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Delete Members in a dataset

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
arvibala
Beginner


Joined: 12 Feb 2008
Posts: 142
Topics: 67

PostPosted: Mon Aug 11, 2008 8:17 am    Post subject: Delete Members in a dataset Reply with quote

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"
Back to top
View user's profile Send private message Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group