resize of vsam file

Ask/Clarify the questions on EASYTRIEVE

Moderators: DikDude, Moderator Group

Post Reply
Posts: 2
Joined: Mon Apr 06, 2015 2:16 pm

resize of vsam file

Post by rsingh99 » Mon Apr 06, 2015 2:24 pm

hi all,

i need to know how we can split vsam file and based on segment number split the file into valid and invalid record files. a record is valid if it should be in that segment such as if account ending with 1 should be in segment 1. then i need to count the the number of error records

William Collins
Active Member
Posts: 732
Joined: Thu May 24, 2012 4:07 am

Post by William Collins » Mon Apr 06, 2015 7:30 pm

OK, but "segment number" in this context means something to you, nothing to anyone outside your site.

You have a range of numbers? Everything in that range goes to one file, everything else goes to another? What difficulty are you having?

Posts: 2
Joined: Mon Apr 06, 2015 2:16 pm

Post by rsingh99 » Tue Apr 07, 2015 9:47 am

ok sorry for the confusion...lets say there are 10 vsam files a1,a2...a10. i need to read each one and write the valid records into output file(PS). and alll the invalid records into error file(PS).All this needs to be done in a single easytreive code.

thank you for your time.

Post Reply


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.
Mainframe Interview questions

Other References
Mainframe Tools and others