Page 1 of 1

Checking field is Numeric

PostPosted: Tue Oct 07, 2008 1:09 pm
by ram23bal
Hi all

I have requirement where Iam geting Inrec file using JCL.
I want to check whether a particular fields is numeric or alphanumeric.
Say for example field in location 1-10, whether this is numeric or alphanumeric.
Is there any Numeric check in JCLs..?

Re: Checking field is Numeric

PostPosted: Tue Oct 07, 2008 8:35 pm
by Frank Yaeger
You can use DFSORT's NUM function to check for numerics or non-numerics.

For more information, see:

http://publibz.boulder.ibm.com/cgi-bin/ ... 0615173822

For example:

    OPTION COPY
    INREC IFTHEN=(WHEN=(1,10,FS,EQ,NUM),BUILD=(...)),
          IFTHEN=(WHEN=(1,10,FS,NE,NUM),BUILD=(...))     


If you want more specific help, you need to describe what you want to do in more detail.