JCL to check if a file contains only numbers

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
Posts: 6
Joined: Tue Oct 06, 2015 12:13 pm

JCL to check if a file contains only numbers

Post by varad.raikar » Tue Oct 06, 2015 12:28 pm

Hi. Please help me out. I need jcl code to check if a file contains only numbers or not.

Example: If file A has records

In this case i want to omit first record having only numbers and move it into a new file.

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

Post by William Collins » Tue Oct 06, 2015 1:13 pm

Do you mean a file or a record. Can you give a representative sample of input, and the expected output for that. Have you tried anything? Two OUTFILs and INCLUDE= with a NUM test on one and a SAVE on the other may be all you need.


Topic deleted by Admin

Post by academyindia4 » Tue Jan 19, 2016 7:15 pm

<< Content deleted By Admin >>

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