Books by Bryan Meyers

Programming in RPG IV

Control Language Programming for IBM i

RPG IV Jump Start

Power Tips for RPG IV

VisualAge for RPG by Example

 
Programming in RPG IV Print E-mail

This introductory RPG IV programming workshop presents RPG IV (ILE RPG/400) from start to finish. If you’re new to RPG, this class is for you. It covers all the language’s specifications and structures. The material in this class will arm you with the skills and knowledge you’ll need to build basic RPG programs.


Duration: 5 days.
Next public class: 15-19 November 2010.

11am-5pm Eastern, with breaks for lab exercises and lunch.


Who Should Attend
This class is appropriate for programmers who need an introduction to the RPG IV language syntax.


Prerequisites

No previous knowledge of RPG is required. In order to successfully complete this course, students should have knowledge/experience in IBM i concepts and programming tools. Previous knowledge of another computer language may be helpful.


What You Will Accomplish
At the end of the course, students will be able to:

  • Recognize the various RPG IV specifications and their use in a program
  • Define work fields, arrays, data structures, and named constants
  • Recognize the data types supported by RPG IV, and when to use them
  • Assign values using EVAL
  • Use RPG IV built-in functions in calculations
  • Use externally described database files in a program
  • Build a simple interactive application
  • Perform program-to-program calls, passing parameters
  • Use data areas in a program
  • Handle errors that may occur during program execution
  • Understand and use modular procedures and service programs
  • Understand the use and basic concepts associated with subfile programming

What You Will Receive
Each student receives:

  • Handout PDF, containing class notes
  • IBM i library with sample data, programs
  • Completion certificate

Course Outline
The class covers these topics:

  • RPG Background
  • Specification Overview
  • Externally Described Files
  • Defining Data with Definition Specifications
  • Defining Data Structures
  • Using Data Areas
  • Using Arithmetic Operations and Functions
  • Processing Character Data
  • Processing Dates
  • Controlling Program Workflow
  • Using Arrays and Tables
  • File Access and Record Manipulation
  • Writing Interactive Applications
  • Calling Programs
  • Passing Parameters
  • Modular Programming Concepts and ILE
  • Creating Procedures
  • Creating and Maintaining Service Programs
  • Error Handling
  • Introduction to Subfiles

Hands-on Labs

  • Writing a basic report program
  • Using Definition Specifications
  • Using calculations and built-in functions
  • Using externally described files
  • File access and update
  • Writing an interactive application
  • Writing procedures
  • Using service programs