1 input file to 'n' output file with some condition

In this Mainframe Forum - You can post your queries on JCL, OS/390 JCL, MVS JCL, z/OS JCL, JES2 & JES3

Moderators: Frank Yaeger, DikDude, Moderator Group

Post Reply
Rajrathinam
Member
Posts: 1
Joined: Wed Nov 19, 2014 3:54 pm

1 input file to 'n' output file with some condition

Post by Rajrathinam » Wed Nov 19, 2014 4:05 pm

1. I have situation where the input file has date field on specific position.
2. Input file contain 100 records but unique 10 dates.
3. For ex - each date has 10 records on it.
4. There should be 10 Output file ie each date should have one file and all records related to that date should be into that file.
5. Finally 10 output file with 10 records on each.
6. Note: Do not know what date are there in input file.

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

Post by William Collins » Wed Nov 19, 2014 6:51 pm

Which SORT product do you use? Can you show sample representative input, and expected output? RECFM and LRECL?

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