IBM Support

Determining If an RPG OPM Program Was Compiled Using IGNDECERR

Troubleshooting


Problem

When RPG programs are created with the CRTRPGPGM command, you can specify *YES or *NO for the 'IGNORE DECIMAL DATA ERROR' (IGNDECERR) OPTION. Currently there is no system command that shows what value was specified for the IGNDECERR option.

Resolving The Problem

When RPG programs are created with the CRTRPGPGM command, specify *YES or *NO for the 'IGNORE DECIMAL DATA ERROR' (IGNDECERR) OPTION. Currently, there is no system command that shows what value was specified for the IGNDECERR option.

Following is a method to determine if an RPG program was created with the IGNDECERR(*YES) option. Display program variable ZIGNDECD in the DEBUG mode. If it is 1, DECIMAL DATA ERRORS are IGNORED.

This can be done by using the following CL COMMANDS:

STRDBG PGM(PGMNAME) UPDPROD(*NO)
ADDBKP STMT('/1') PGMVAR(ZIGNDECD)

CALL PGMNAME

Parameters are not required for the CALL. After the variable is displayed, press F3 to exit the program.

Do not attempt to continue running the RPG program.

[{"Type":"MASTER","Line of Business":{"code":"LOB57","label":"Power"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SWG60","label":"IBM i"},"Platform":[{"code":"PF012","label":"IBM i"}],"Version":"7.1.0"}]

Historical Number

13760031

Document Information

Modified date:
18 December 2019

UID

nas8N1018254