IBM Support

RPG Cafe: Fall 2020: Require prototypes for exported procedures

News


Abstract

RPG enhancement to add new command parameter REQPREXP and new Control keyword REQPREXP, to allow you to optionally require prototypes for exported procedures and for the cycle-main procedure.

Content

You are in: RPG Cafe > Require prototypes for exported procedures

Short URL: https://ibm.biz/rpgcafe_require_prototypes_for_exported_procedures

RPG Cafe: Require prototypes for exported procedures

New command parameter and Control keyword REQPREXP

Control whether prototypes are required for exported procedures and for the cycle-main procedure.

  • *NO: This is the default. Prototypes are not required.
  • *REQUIRE: If a prototype is not specified for an exported procedure or for the cycle-main procedure, the compile fails with a severity-30 error.
  • *WARN: If a prototype is not specified for an exported procedure or for the cycle-main procedure, a severity-10 warning message is issued.

You can also code REQPROTO(*NO) on the DCL-PROC statement (or the P-B fixed-form statement) of a procedure, if the prototype is never required for that specific procedure. And you can code REQPROTO(*NO) on the Procedure Interface of the cycle-main procedure, if the prototype is never required.

.                                                            .
.                                                            .

PTFs for 7.3 and 7.4, available in November 2020

7.3:

  • ILE RPG compiler: SI74612
  • ILE RPG commands CRTBNDRPG and CRTRPGMOD: SI74590.

    Note: Please be sure to read the Special Instructions in the cover letter before applying this PTF. When you apply or remove this PTF, any changes you have made with CHGCMDDFT will revert to the shipped defaults.

    It is only necessary to have this PTF if you want to specify the REQPREXP parameter for CRTBNDRPG or CRTRPGMOD. If you only want to specify the REQPREXP keyword in your Control statement, you don't need this PTF.

7.4:

  • ILE RPG compiler: SI74613
  • ILE RPG compiler, TGTRLS(V7R3M0): SI74614
  • ILE RPG commands CRTBNDRPG and CRTRPGMOD: SI74591

    Note: Please be sure to read the Special Instructions in the cover letter before applying this PTF. When you apply or remove this PTF, any changes you have made with CHGCMDDFT will revert to the shipped defaults.

    It is only necessary to have this PTF if you want to specify the REQPREXP parameter for CRTBNDRPG or CRTRPGMOD. If you only want to specify the REQPREXP keyword in your Control statement, you don't need this PTF.

The ILE RPG compiler PTFs will also be available with the Db2 for i Fix Packs. See Db2 for IBM i 2020 PTF Group Schedule.

However, the PTFs for the commands will not be in the Db2 for i Fix Packs, and they will not be in any Cumulative PTF.

RDi support

The next release of RDi will support this enhancement.

Documentation in the IBM Knowledge Center

The ILE RPG Reference and ILE RPG Programmer's Guide in the 7.3 and 7.4 IBM Knowledge Center are updated with full information about this enhancement. Start at the What's New Since 7.3 or What's New Since 7.4 section in the Programmer's Guide for information about the command parameter, and start at the What's New Since 7.3 or What's New Since 7.4 section in the Programmer's Guide for information about the Control keyword.

[{"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:
12 November 2020

UID

ibm16342897