RPGLE Free Format (Hello World)

Today RPGLE supports fully free formatting. It is similar to other languages such as JAVA, PHP and can be understood easily. Programmers who are familiar with other modern languages can more learn RPGLE.

There are numerous advantages in Free Format RPGLE over legacy fixed format.

Lets try a small hello world example in Free Format RPGLE.

Create a member “helloworld” in your working source physical file. Give the type of this member as “RPGLE”. Now type the following code in the source member.


No need to worry about positioning like we did on Fixed format RPGLE. But remember to use semicolon (;) at the end of each line.

Now compile the module. Create the program and call it, It Will display the phrase Hello World.


One thought on “RPGLE Free Format (Hello World)