Please help me if theirs any intrinsic function which conforms the PIC clause of the varaible and give returns boolean type 0 if variable does not conforms to the PIC clause and 1 if it confroms to the PIC clause.
01 new-var pic -9(5).99
Eg: Value in new-var is -12345.31 it should return 1 and
Value of new-var is invalid value is should return 0.
Joined: 23 Nov 2006 Posts: 19270 Location: Inside the Matrix
Hello and welcome to the forum,
There is no intrinsic function that i'm aware of. . .
How might you get a value into this field that does not conform? The field definition would typically be an output field. When a pic s(5)v99 comp-3 field is moved to new-var, new-var will conform. . . If the comp-3 field is not valid, look for an abend.