JCL SORT to get the count in conjunction with outrec

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
curious
Member
Posts: 1
Joined: Mon Mar 13, 2017 8:36 pm

JCL SORT to get the count in conjunction with outrec

Post by curious » Mon Mar 13, 2017 8:42 pm

Hi,
I need to create an output file in the following layout where the first 3 fields are hardcoded predetermined values, the4th field is the current date and the 5th field is the count of records from the input file (13 digits accuracy). The input file is a fixed length file of 450 char in length while the output file needed is a FB file of a shorter length. How do we do this in SORT

ABCDE110,MNOPQ110,ABCDE110,2017/03/11,9999999999999

Thanks for your help.

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