Question & Answer
Question
CL CALL PARM CPD0095 Numeric value for parameter PARM is not valid
Answer
When the CL CALL and CALLPRC parameter PARM is specified with the numeric *DEC type, it has a limitation of 15 significant digits with a maximum of 10 integer digits and 5 decimal digits. If more than 10 significant integers are specified, it will cause an exception. If more than 5 decimal digits are specified, the extra digits will be truncated. This limitation is a permanent restriction.
For example, a CALL using the supported maximum number of digits:
CALL mypgm PARM((1234567890.12345 (*DEC 15 5))) gives the expected result 1234567890.12345
A call, using more than the maximum number of decimal places:
CALL mypgm PARM((123.123456 (*DEC 10 6))) gives a result with the final decimal digit truncated 123.123450
A call, using more than the maximum significant integer places:
CALL mypgm PARM((12345678901 (*DEC 11 0))) fails with exception CPD0095 indicating that the numeric value is not valid.
MSGID CPD0095 description: Numeric value for parameter &2 is not valid.
Was this topic helpful?
Document Information
Modified date:
13 June 2024
UID
ibm17157277