Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Delete records in VSAM file without undefining the cluster

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: Delete records in VSAM file without undefining the cluster
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    Post subject:
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: 1439
Location: Bangalore,India

PostPosted: Wed Mar 14, 2007 2:01 pm    Post subject:
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    Post subject: Re: Delete records in VSAM file without undefining the clust
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    Post subject: Re: Delete records in VSAM file without undefining the clust
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: 3158
Location: Tucson AZ

PostPosted: Wed Mar 14, 2007 5:18 pm    Post subject: Re: Delete records in VSAM file without undefining the clust
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    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Fail to change physical VSAM filename... jacobdng CICS 7 Fri Jan 20, 2017 12:36 pm
No new posts SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts how to recover an uncataloged VSAM da... archanamuthukrishnan All Other Mainframe Topics 3 Wed Jan 11, 2017 6:18 pm
No new posts Underlying DB2 VSAM LDS - SMF recording vasanthz All Other Mainframe Topics 6 Thu Jan 05, 2017 4:20 am
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us