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:

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.

   dsply 'Hello';
   dsply                                                                                                                                                                       'world!';


  • ILE RPG compiler: SI58136
  • 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":"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":"All Versions","Edition":"","Line of Business":{"code":"LOB57","label":"Power"}}]

Document Information

Modified date:
31 January 2020