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 

IDCAMS - DELETE option

 
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: Tue Jan 27, 2009 2:26 pm    Post subject: IDCAMS - DELETE option Reply with quote

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
View user's profile Send private message Yahoo Messenger
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Tue Jan 27, 2009 2:46 pm    Post subject: Reply with quote

Use DISP=OLD on the PDS is one way
_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12377
Topics: 75
Location: San Jose

PostPosted: Tue Jan 27, 2009 4:10 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
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