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

Delete records in VSAM file without undefining the cluster


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Knowledge Hunter

New User


Joined: 17 Aug 2006
Posts: 22
Location: India

PostPosted: Tue Mar 13, 2007 3:14 pm
Reply with quote

hi all,

Is there an utility or jcl avaiable to delete the records in a VSAM dataset without unclustering it.

Regards,
Yogesh
Back to top
View user's profile Send private message
dineshness

New User


Joined: 25 Dec 2006
Posts: 63
Location: Perambalur

PostPosted: Wed Mar 14, 2007 12:21 am
Reply with quote

I think individually emptying the Data and Index component of the VSAM cluster would essentially mean deleting all the records in the CLUSTER without deleting the CLUSTER itself.

Dinesh.
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Wed Mar 14, 2007 2:01 pm
Reply with quote

Use omit cond=all like below

//sortin dd dsn=your.vsam,disp=old
//sortout dd dsn=your.vsam,disp=old
//sysin dd *
sort fields=copy
omit cond=all
/*

This solves your problem
Back to top
View user's profile Send private message
Knowledge Hunter

New User


Joined: 17 Aug 2006
Posts: 22
Location: India

PostPosted: Wed Mar 14, 2007 4:36 pm
Reply with quote

thanks for you inputs icon_smile.gif
Back to top
View user's profile Send private message
Knowledge Hunter

New User


Joined: 17 Aug 2006
Posts: 22
Location: India

PostPosted: Wed Mar 14, 2007 4:59 pm
Reply with quote

hi Murali,

i tried your solution, but i am getting
"VSAM OPEN ERROR -- A8" error and job abends with U0016. since the file is opened in DISP=OLD in sortin, it is unavaiable for SORTOUT step.

Kindly throw some light on this.
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Wed Mar 14, 2007 5:18 pm
Reply with quote

Knowledge Hunter wrote:
Is there an utility or jcl avaiable to delete the records in a VSAM dataset without unclustering it.
Use Idcams repro from an empty dataset to the vsam file with the reuse parameter.
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 -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts DELETE SPUFI DB2 1
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts DSNTIAUL driven delete IBM Tools 0
Search our Forums:

Back to Top