Checking for numeric fieds in DFSort.
Checking for numeric fieds in DFSort.
We use DFsort OMIT cards to eliminate unwanted records from a file. One of the criteria is non-numeric data in certain fields. I was wondering if there was a way to set up a way to see if a filed is numeric like we have in IS NUMERIC in COBOL?
Re: Checking for numeric fieds in DFSort.
Yes, you can do it by checking condition NUM
this will include records have numeric value in 1,6 position
If you want exclude records having numeric then use OMIT COND
Thanks
Magesh
Code: Select all
INCLUDE COND=(1,6,FS,EQ,NUM)
If you want exclude records having numeric then use OMIT COND
Thanks
Magesh
Create an account or sign in to join the discussion
You need to be a member in order to post a reply
Create an account
Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute