NullFields
395 pts. | Dec 24 2008 4:01PM GMT
You can write an error handler that can be invoked by the cobol program similar to how MONMSG works in CL. Look at Chapter 6 of the COBOL USERS GUIDE.
Also, depending on the verb used when the data decimal occured, you might be able to capture in with the verbs ON SIZE syntax. You can also learn more about that in the COBOL USER GUIDE.
The guide mentioned above is for the OPM Cobol. If you are actually and ILE/COBOL instead of COBOL/400, this is the link. (Chapter 16).
Supriyob2
65 pts. | Sep 9 2009 7:27AM GMT
if Variable (var) is alpahanumeric :
If var is numeric
move var to num-var
else
….
if ur cobol pgm gets called from CLP then and a numeric value is being passed from CLP to a numeric field in cobol :
make the numeric varibale in cobol as comp-3.
Supriyo






