How to check the numeric data using a INCLUDE statement

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
subbu
Member
Posts: 9
Joined: Tue Feb 23, 2010 10:57 am

How to check the numeric data using a INCLUDE statement

Post by subbu » Fri Sep 27, 2013 12:11 pm

Hi,
Can any one pls let me know how we can verify the numeric data using the INCLUDE.

I knw we can verify the char values like below:
INCLUDE COND=(95,5,CH,EQ,C'MVIC ')
My requirment is to verify the numeric data.
Subbu.Ch

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

Post by William Collins » Fri Sep 27, 2013 3:48 pm

It is not clear what you want.

Code: Select all

  INCLUDE COND=(95,5,ZD,EQ,NUM)
Will include all records whose values at that position and length are numeric.

Code: Select all

  INCLUDE COND=(95,5,ZD,NE,NUM)
All those records whose values at that position and length are not numeric.

Look in the manual for the valid numeric data types and how NUM can be used.

If you need something else, fully describe it with sample input and expected output.
Last edited by William Collins on Fri Sep 27, 2013 10:18 pm, edited 1 time in total.

NicC
Active Member
Posts: 650
Joined: Sun Jul 24, 2011 5:27 pm
Location: Down on the pig farm

Post by NicC » Fri Sep 27, 2013 7:47 pm

Also, the JCL INCLUDE statement does nothing like that - it is for including JCL. So JCL cannot do tis. I guess you mean sort in which case which sort product do you use? With that information a kind moderator can move your topic to the correct place.
Regards
Nic

DikDude
Moderator
Posts: 1001
Joined: Fri Jul 22, 2011 8:39 am
Location: usa

Post by DikDude » Fri Sep 27, 2013 11:47 pm

Yup, happy to relocate this.

Also, you neeed to consider which values are numeric to you - they might be more than a simple numeric test can handle. i.e. to you 12,345.67 might be numeric, but i believe it is not numeric to the "num" test.
Have a good one

academyindia4

Topic deleted by Admin

Post by academyindia4 » Mon Feb 01, 2016 10:05 pm

<< Content deleted By Admin >>

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