This course introduces you to the RPG IV programming language.
The course begins by describing the general coding requirements of an RPG program. In doing so, it discusses the different types of RPG statements and defines common RPG terms. A sample RPG program is illustrated.
The course then takes a detailed look at the statements used to define various types of data items. Next, it examines the statements used to assign a value to a data item, perform arithmetic operations, and perform character-string manipulation. The statements used to implement structured programming control structures are covered next. The course ends by describing the directives available to control the behavior of the ILE RPG compiler.
Approximate Study Time: 3.5 hours
After completing this course, you should be able to:
- Use RPG terminology
- Name the seven free-form RPG specification types and describe the function of each
- Describe the format rules for free-form RPG statements
- Identify the rules for RPG statement continuation
- Code a cycle-main module and a linear-main module
- Code the definition specification for a stand-alone field, a named constant, and a data structure
- Name and use the RPG op codes that assign a value to a data item
- Code the IF, IF/ELSE, DO UNTIL, DO WHILE, SELECT, and FOR structures in an RPG program
- Code the RPG statements used to exit from a program
- Name the most commonly used RPG compiler directives and describe the function of each
Introduction to RPG
A Sample RPG Program
Manipulating Data Items
This course is intended for programmers new to the RPG programming language. It can also be taken by RPG III programmers who want to learn RPG IV and by RPG IV programmers who want to learn the free-form syntax.
This course assumes that you are familiar with computer programming concepts. In order to satisfy this prerequisite, you should have some programming experience with another programming language.
This course also assumes that you have a working knowledge of basic IBM i concepts and facilities. You can satisfy this prerequisite by successfully completing the courses in the following series:
Finally, the course also assumes you familiar with IBM i programming concepts and facilities. You can satisfy this prerequisite by successfully completing the courses in the following series: