Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 Where to get sample for processing RM... vice_versa PL/I & Assembler 2 Tue Jan 16, 2018 2:03 pm
No new posts VSAM dataset not found abdulrafi JCL & VSAM 5 Fri Jan 12, 2018 11:19 am
No new posts COB2 file processing rizwanaccy COBOL Programming 8 Tue Jan 02, 2018 1:00 pm
No new posts Skip records depends on count lakshmiibmmainframes DFSORT/ICETOOL 5 Sun Dec 24, 2017 9:51 pm
No new posts Compare two PS files using ICE TOOL f... SENTHIL MURUGAAN DFSORT/ICETOOL 5 Sun Dec 24, 2017 1:26 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us