IBM Support

CL CALL PARM CPD0095 Numeric value for parameter PARM is not valid

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. 

[{"Type":"MASTER","Line of Business":{"code":"LOB68","label":"Power HW"},"Business Unit":{"code":"BU070","label":"IBM Infrastructure"},"Product":{"code":"SWG60","label":"IBM i"},"ARM Category":[{"code":"a8m3p0000006x8GAAQ","label":"CL"}],"ARM Case Number":"TS016063503","Platform":[{"code":"PF012","label":"IBM i"}],"Version":"7.4.0;7.5.0"}]

Document Information

Modified date:
13 June 2024

UID

ibm17157277