IBM Support

RPG Cafe: Spring 2023: Generate the "boolean" atribute for indicators in PCML

News


Abstract

Information about the PTFs to provide the enhancement for ILE RPG to generate the "boolean" attribute for indicators in PCML.

Content

You are in: RPG Cafe > RPG Cafe: Spring 2023: Generate the "boolean" atribute for indicators in PCML

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

Spring 2023: Generate "boolean" for indicators in PCML

PCML now supports a "boolean" attribute for indicators to distinguish them from the CHAR(1) data type. There are two ways to ask RPG to generate the "boolean" attribute

  • Specify the value "8.0" for the QIBM_RPG_PCML_VERSION environment variable when you compile your program to generate PCML.
    ADDENVVAR QIBM_RPG_PCML_VERSION VALUE('8.0')
    
  • Specify *V8 in the PGMINFO keyword.
    CTL-OPT PGMINFO(*PCML : *V8);
    

For the following program:

ctl-opt pgminfo(*pcml : *dclcase : *v8);
dcl-pi *n;
   parm_ch1 char(1);
   parm_ind ind;
end-pi;
return;

The following PCML is generated:

<pcml version="8.0">
   <program name="MYPGM" entrypoint="MYPGM">
      <data name="parm_ch1" type="char" length="1" usage="inputoutput" />
      <data name="parm_ind" type="char" length="1" boolean="true" usage="inputoutput" />
   </program>
</pcml>

.                                                            .
.                                                            .

PTFs for 7.3, 7.4, and 7.5:

7.3:

  • ILE RPG compiler: 5770WDS SI83429

7.4:

  • ILE RPG compiler: 5770WDS SI83497
  • ILE RPG compiler, TGTRLS(V7R3M0): 5770WDS SI83483

7.5:

  • ILE RPG compiler: 5770WDS SI83480
  • ILE RPG compiler, TGTRLS(V7R4M0): 5770WDS SI83496
  • ILE RPG compiler, TGTRLS(V7R3M0): 5770WDS SI83494

The PTFs for 7.4 and 7.5 are also available with Db2 for i Fix Packs. See Db2 for IBM i 2023 PTF Group Schedule.

RDi support

A later update for RDi will support this enhancement.

Documentation

The 7.4 ILE RPG Reference and 7.5 ILE RPG Reference are updated with full information about this enhancement. Start at the "What's new since 7.4", or "What's new since 7.5" 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":[{"code":"a8m0z0000000C4BAAU","label":"IBM i"},{"code":"a8m0z0000000CHtAAM","label":"Programming ILE Languages"}],"Platform":[{"code":"PF012","label":"IBM i"}],"Version":"7.3.0;7.4.0;7.5.0;and future releases"}]

Document Information

Modified date:
16 May 2023

UID

ibm16983230