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
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts How to generate a new unique Input fi... for1ranjith CLIST & REXX 11 Sat Jul 01, 2017 12:09 pm
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm


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