View previous topic :: View next topic
|
Author |
Message |
sanjay kumar tripathi
New User
Joined: 08 Jul 2008 Posts: 11 Location: chennai
|
|
|
|
Could anyone help me to code a JCl which will delete all records from a vsam file except the first one. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Would probably be easier to REPRO out the first record, DELETE / DEFINE the cluster and then REPRO back the first record. |
|
Back to top |
|
|
sanjay kumar tripathi
New User
Joined: 08 Jul 2008 Posts: 11 Location: chennai
|
|
|
|
In this case i have to delete the vsam itself and have to create the same VSAM again and initialize it. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
When you REPRO back the first record, you will initialise the cluster. |
|
Back to top |
|
|
|