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 specification types of RPG statements and defines common RPG terms. The course then shows how to use both the LPEX editor's and SEU's prompting facility.
Next, the course takes a detailed look at the definition specification, which is used to define various types of data items. The course then examines the calculation specification in depth, and covers the op codes used to assign a value to a data item, perform arithmetic operations, and perform character string manipulation. The op codes used to implement IF, IF/ELSE, and DO WHILE logic structures are covered next. The course ends by describing some additional coding considerations, such as how to continue an RPG statement and how to exit from an RPG program.
Approximate Study Time: 2.5 hours
After completing this course, you should be able to:
- Name the seven RPG specification types and describe the function of each
- Use RPG terminology
- Identify the rules for RPG statement continuation
- Name the most commonly used RPG compiler directives and describe the function of each
- Use the LPEX editor's prompting facility to enter RPG statements
- Use the SEU's prompting facility to enter RPG statements
- Name and describe the various data types supported by RPG
- 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 an IF structure in an RPG program
- Code an IF/ELSE structure in an RPG program
- Code a DO WHILE structure in an RPG program
- Code the RPG statements used to exit from a program
Introduction to RPG
Using the LPEX Editor and SEU Prompting Facilities
Manipulating Data Items
Additional RPG Coding Considerations
This course is intended for IBM i programmers new to the RPG programming language. It can also be taken by RPG III programmers who want to learn RPG IV.
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:
© Copyright 2023 Manta Technologies. All Rights Reserved.