IBM Support

Fully free-form RPG - new in 7.1 and 7.2

General Page

You are in: RPG Cafe > Fully free-form RPG, new in 7.1 and 7.2

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

RPG Cafe: Fully free-form RPG

Enhancement for 7.1 and 7.2: Fully free-form RPG

Code free-form RPG starting in column 1 and going to the end of the line.

No practical limit on the length of a source line. (There is a limit on the record length for a source physical file, but there is no limit on the length of a line in an IFS file.)

You must code **FREE in column 1 of the first line of any source member that contains fully-free code.

When you code **FREE in line 1, the entire source member must contain only free-form code. If you need any fixed-form statements, such as a TAG statement, or I specs, you can put them in a /COPY file.

In the following example, the code begins in column 1. The second DSPLY operation extends beyond column 90.

....+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8....+....9....+....0....+....
**FREE
ctl-opt
main(greeting);
dcl-proc
greeting;  
   dsply 'Hello';
   dsply                                                                                                                                                                       'world!';
end-proc;

PTFs

7.1:
  • ILE RPG compiler: SI58136
7.2:
  • ILE RPG compiler: SI58137
  • ILE RPG compiler, TGTRLS(V7R1M0): SI58110

The PTFs are also available in the same Db2 fix packs that support the SQL precompiler.

RDi support

RDi supports fully free-for RPG code starting in version 9.5.

Embedded SQL support

The SQL precompiler supports fully free-form RPG with Db2 fix packs.

The PTFs are also available with Db2 for i Fix packs. DB2 PTF group SF99701 (Level 38 or higher) for 7.1 and DB2 PTF group SF99702 Level 9 (or higher) for 7.2. See Technology Updates/page/Db2 for IBM i 2015 Group PTF Schedule.

[{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SS69QP","label":"Rational Development Studio for i"},"Component":"ILE RPG Compiler","Platform":[{"code":"PF012","label":"IBM i"}],"Version":"All Versions","Edition":"","Line of Business":{"code":"LOB08","label":"Cognitive Systems"}}]

Document Information

Modified date:
31 January 2020

UID

ibm11108095