IBM Support

RPG Cafe: Option for stricter rules for keys



RPG enhancement delivered through PTFs in the spring of 2021. Option for stricter rules for keys


You are in: RPG Cafe > RPG Cafe: Option for stricter rules for keys

Short URL:



With Control keyword EXPROPTS(*STRICTKEYS), you get stricter rules for %KDS and a list of keys.



With Control keyword EXPROPTS(*STRICTKEYS), the rules for the search arguments you can specify with a list of keys or %KDS are more strict.

By default, the data type of the search argument has to match the key, but the length and CCSID can be different. For example, the length of a numeric search argument can be longer than the key, which can lead to a numeric overflow error at run time.

With EXPROPTS(*STRICTKEYS), the compiler does not allow the search argument to be longer than the key.

For a complete list of the rules for *STRICTKEYS, see the documentation for the EXPROPTS keyword in the ILE RPG Reference.

.                                                            .
.                                                            .

PTFs for 7.3 and 7.4, available in April 2021


  • ILE RPG compiler: SI76100


  • ILE RPG compiler: SI76101
  • ILE RPG compiler, TGTRLS(V7R3M0): SI76109

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

RDi support

The next release of RDi will support these enhancements.


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 cince 7.3" or What's new since 7.4" section in the Reference.

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SS69QP","label":"Rational Development Studio for i"},"Component":"ILE RPG Compiler","Platform":[{"code":"PF012","label":"IBM i"}],"Version":"7.3;7.4","Edition":"","Line of Business":{"code":"LOB57","label":"Power"}}]

Document Information

Modified date:
15 April 2021