easytrieve

Ask/Clarify the questions on EASYTRIEVE

Moderators: DikDude, Moderator Group

Post Reply
Rajan
Member
Posts: 1
Joined: Tue Apr 26, 2016 3:18 pm

easytrieve

Post by Rajan » Tue Apr 26, 2016 3:22 pm

I have one input file and i have to make two output files such that output file 1 contains even serial numbers and outfile2 contains odd serial numbers.i want the code for easytrieve

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

Post by William Collins » Tue Apr 26, 2016 8:26 pm

You "REDEFINES" the field to allow you to reference the right-most digit. If that is 1, 3, 5, 7, 9, it is odd, else it is even.

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