RPG Freed from the Fetters of Fixed Format - Birgitta Hauser

Finally! The time where RPG was a cryptic, column oriented, hard to decode programming language is over. Beginning with release V5R1M0 free format coding for C-Specs was introduced … but it took until release 7.1 TR 8 (respectively release 7.2) until the H, F, D and P-Specs got a free format equivalent. The complete free format coding includes several simplifications and/or assumptions, for example if not explicitly defined differently a file (F-Spec) is handled as input file. Instead of single characters that had to be coded on a specific position, descriptive keywords are introduced, for examples specific keywords exist for all data types. The sequence of F- and D-specs is no longer mandatory. And with release 7.2 TR 3 the last restriction (RPG source code has to be coded between position 8 and 80) is removed.

Learning Objectives:

In this session you will learn how to code free-format H-, F-, D- and P-Specs beginning with the new DCL-Opcodes, continued with the new keywords for defining data types in stand-alone fields or data structure sub-fields. This session will cover the file definition for keyed or unkeyed access in input and update mode. You’ll also learn how to define all kinds of work fields, constants, arrays, (nested) data structures etc. The coding of (sub-) procedures, prototypes and procedure interfaces are demonstrated as well as the coding of special data structures, such as program status data structure and data areas.

Birgitta Hauser

Independent Consultant

Birgitta Hauser graduated with a business economics diploma and started programming on the AS/400 in 1992. She is an experienced RPG programmer as well as a database and software engineer, focusing on IBM i application and database modernization. Today, she is an independent consultant on application and database modernization on IBM i and Db2 for i. 

Birgitta also works in education as a trainer for RPG and SQL developers. Since 2002, she has been a frequent speaker at COMMON user groups meetings and other IBM i and Power conferences in Germany, other European countries, the United States, and Canada. In addition, she is co-author of two IBM Redbooks and has also authored several articles and papers focusing on RPG and SQL for the ITP Verlag (a German publisher), IT Jungle Guru, and IBM DeveloperWorks. 

She received the John Earl Speaker Scholarship Award in 2015, the Al Barsa Memorial Scholarship Award in 2018, and was named an IBM Champion in 2021.


Key:

Complete
Failed
Available
Locked
Video
Open to view video.
Open to view video.