View previous topic :: View next topic
|
Author |
Message |
maxsubrat
Active User
Joined: 27 Feb 2008 Posts: 110 Location: india
|
|
|
|
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 |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
IDCAMS DELETE/DEFINE. |
|
Back to top |
|
|
Escapa
Senior Member
Joined: 16 Feb 2007 Posts: 1399 Location: IL, USA
|
|
|
|
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 |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
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 |
|
|
|