Manta alt

YOUR IBM i TRAINING SOURCE

You must allow the browser to execute JavaScript programs if you want to view product information. If your browser is set up to execute JavaScript programs, the problem is that the product ID was incorrect. Use the menu bar above to find the desired product.

Overview

Audio

This course describes advanced RPG coding techniques.

The course begins by describing how an RPG program can access and modify a data area. Next, you will see how to detect error conditions, and how to obtain status information that indicates the cause of the error. The course then shows how to define and use pointers in an RPG program. The course ends by describing how an RPG program can acquire, use, and free dynamic storage.

Approximate Study Time: 90 minutes

Objectives

After completing this course, you should be able to:

  • Access the contents of a data area
  • Change the contents of a data area
  • Detect an error condition in an RPG program
  • Obtain information that indicates the cause of an error
  • Define and use a basing pointer data item
  • Define and use a procedure pointer data item
  • Use the %ALLOC built-in function to acquire dynamic storage
  • Use the DEALLOC op code to free previously acquired dynamic storage
  • Use the %REALLOC built-in function to change the length of previously acquired dynamic storage

Topic Outline

Using Data Areas

Error Processing

Using Pointers

Acquiring and Using Dynamic Storage

Audience

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.

Prerequisites

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 basic understanding of RPG programming concepts. You can satisfy this prerequisite by successfully completing the first five courses in this series: