How to empty VSAM KSDS file which is defined as REUSE = No

Post your questions related to VSAM

Moderator: Moderator Group

Post Reply
lavannya
Member
Posts: 1
Joined: Sun Feb 17, 2013 7:43 am

How to empty VSAM KSDS file which is defined as REUSE = No

Post by lavannya » Sun Feb 17, 2013 7:49 am

Hi ,

I have a requirement to empty a vsam file(KSDS) which is defined as reuse = No,is there any possibility achieving that using SORT , if yes kindly help me on this.


Reg
ards
Lavannya

Anuj Dhawan
Moderator
Posts: 1625
Joined: Sat Aug 09, 2008 9:02 am
Location: Mumbai, India

Post by Anuj Dhawan » Mon Feb 18, 2013 7:24 pm

We'll pay nearly the same attention even when you write your post with default color and font size, you know!

And Sort won't work unless reuse=yes is used for the VSAM file, to be used as input and output.

Other possible ways are - IDCAMS repro or possibly you can write a COBOL program.
Regards,
Anuj

User avatar
dbzTHEdinosauer
Moderator
Posts: 981
Joined: Mon Oct 02, 2006 8:31 pm

Post by dbzTHEdinosauer » Mon Jul 01, 2013 5:41 pm

delete/define is the easiest way
Dick Brenholtz
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others