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.
- 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 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.
31 January 2020