This course rounds out your basic RPG coding skills. These skills, along with those you acquired by taking the first two courses in the RPG Programming series, are the foundation on which later courses in the series will build.
The course begins by identifying the type of information that can be provided on a header specification and showing you how to code an H-spec.
Next, the course shows how to use subroutines to modularize a program. You will see how to code a subroutine and how to call it from other routines. The course then considers built-in functions and the various operations they perform.
Next, the course describes the date processing capabilities built into the RPG IV language. The course ends by describing the obsolete language features you are most likely to encounter when modifying and maintaining existing RPG programs.
Approximate Study Time: 2 hours
After completing this course, you should be able to:
- Code a header specification
- Identify the header specification keyword used to specify a given piece of information
- Call a subroutine in an RPG program
- Code a subroutine in an RPG program
- Identify the RPG built-in function used to perform a specified operation
- Code RPG statements that use built-in functions
- Code an RPG program that manipulates date or time fields in the following ways:
- Compares two date or time fields
- Performs date or time arithmetic
- Converts a date or time field from one format to another
- Extracts a portion of a date, time, or timestamp field
- Verifies that the contents of a date, time, or timestamp field are valid
- Identify the coding differences between a fixed-format C-spec and a free-format C-spec
- Describe how indicators are used to detect various exception and error conditions
- Given an obsolete RPG op code, identify its function
The Header (Control) Specification
RPG Built-In Functions
Working with Dates and Times
Obsolete Language Elements and Op Codes
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.
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:
In addition, 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:
Finally, the course assumes that you have a understanding of basic RPG programming concepts and RPG file processing capabilities. You can satisfy this prerequisite by successfully completing the first two courses in this series:
© Copyright 2023 Manta Technologies. All Rights Reserved.