- 4 hours
The RPG/400 Coding course explains the fundamental Report Program Generator (RPG) operation codes that enable programmers to manage field values, perform numeric operations, and manipulate dates for retrieval and viewing.
Personnel requiring knowledge of RPG/400 coding.
Knowledge of data processing, programming concepts, and the IBM i operating system.
After completing this course, the student will be able to:
- Recognize the essentials of arithmetic operations and the parts of the C specification by using the ADD operation
- Define the functioning of the MOVE and the MOVEL operations
- Identify how to code arithmetic operations SUB, MULT, DIV, MVR, and Z-ADD
- Recognize RPG/400 figurative constants and the correct usage of date and time functions
Calculation Specification Operations
Field and Indicator Settings
Calculation Specification Opcodes
C SPEC Coding Example
ADD Operation Code
Internal Working Area
How to Calculate the Size of the Result Field
Purpose and Effect of Rounding
When to Use Rounding
MOVE Operation Code
MOVEL Operation Code
Date and Time Functions