IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

To delete records in a VSAM file


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
maxsubrat

Active User


Joined: 27 Feb 2008
Posts: 110
Location: india

PostPosted: Tue Mar 16, 2010 12:25 pm
Reply with quote

Hi,

I have a VSAM file and the records are being copied to VSAM file from a PS. So everytime i run the job, i need to delete the records from the VSAM file before copying from the PS file.

Can anyone tell me how to delete the records only from the VSAM file in any JCL utility.

Thanks
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Tue Mar 16, 2010 1:04 pm
Reply with quote

IDCAMS DELETE/DEFINE.
Back to top
View user's profile Send private message
Escapa

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Tue Mar 16, 2010 1:11 pm
Reply with quote

If the cluster's defined with REUSE option, you can just insert new records using the REPRO/REUSE function of AMS (IDCAMS).

But IDCAMS DELETE/DEFINE, I feel more prefered option.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Wed Mar 17, 2010 4:13 pm
Reply with quote

You already have two suggestions with you, however, I still could not understand the question:
maxsubrat wrote:
Can anyone tell me how to delete the records only from the VSAM file in any JCL utility.
usage of "only" in "only from the VSAM file" is ambiguous - what exactly you mean by this?
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Binary File format getting change whi... All Other Mainframe Topics 7
No new posts To fetch records that has Ttamp value... DFSORT/ICETOOL 4
No new posts ICETOOL returns no records JCL & VSAM 1
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
Search our Forums:

Back to Top