IBM Support

RPG Cafe: Fall 2021: Debug named constants with DEBUG(*CONSTANTS)



RPG enhancement delivered through PTFs in the fall of 2021. Debug named constants with keyword DEBUG(*CONSTANTS)



You are in: RPG Cafe > RPG Cafe: Fall 2021: Debug named constants

Short URL:

Specify DEBUG(*CONSTANTS) to enable debugging named constants


If you specify DEBUG(*CONSTANTS), you need a debugger PTF on any system where you debug the program.

  • On a 7.3 system, you need PTF 5770SS1 SI76807.
  • On a 7.4 system, you need PTF 5770SS1 SI76808.


When you specify Control keyword DEBUG(*CONSTANTS), you can evaluate named constants while debugging.

          ctl-opt debug(*constants);
.                                                            .
.                                                            .

PTFs for 7.3 and 7.4, available in September 2021

Warning: You need a debugger PTF on every system where you debug the program. If the debugger PTF is not applied on the system where the program is running, the debugger issues an error when you try to evaluate a named constant.


  • ILE RPG compiler: 5770WDS SI77165
  • Debugger: 5770SS1 SI76807


  • ILE RPG compiler: 5770WDS SI77166
  • ILE RPG compiler, TGTRLS(V7R3M0): 5770WDS SI77167
  • Debugger: 5770SS1 SI76808

The PTFs are also available with the Db2 for i Fix Packs. See Db2 for IBM i 2021 PTF Group Schedule.


The 7.3 and 7.4 ILE RPG Reference and ILE RPG Programmer's Guide are updated with full information about these enhancements. Start at the "What's new since 7.3" or What's new since 7.4" section in the Reference.

[{"Type":"MASTER","Line of Business":{"code":"LOB57","label":"Power"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SS69QP","label":"Rational Development Studio for i"},"ARM Category":[],"Platform":[{"code":"PF012","label":"IBM i"}],"Version":"7.3.0;and future releases"}]

Document Information

Modified date:
09 September 2021