RPG/400 Programming


Duration

2 – 3 hours

Overview

Audience

Personnel requiring knowledge of RPG programming.

Prerequisites

Knowledge of data processing, programming concepts, and the AS/400 Operating System.

Objectives

After completing this course, the student should be able to:
  • Outline the RPG/400 Program Cycle.
  • Detail the process to stop a program using the LR indicator and the Return (RETRN) Opcode.
  • Outline and understand the basics of Structured Programming.
  • Know how to affect the flow of control using indicators and structured opcodes.

Course Content

Unit 1 RPG/400 PROGRAMMING PRETEST

Unit 2 INTRODUCING THE RPG CYCLE

  • The RPG Cycle (Program Start, Execution and End)
  • Using the Calculation Specification Sheet
  • Stopping an RPG Program
  • Using the SETON LR and RETRN Opcode
  • Coding a Simple Program

Unit 3 STUCTURED PROGRAMMING – FLOW OF CONTROL

  • Introduction to Flow of Control
  • Structured Programming
  • Sequence
  • Alternation

Unit 4 STUCTURED PROGRAMMING – ITERATION

  • What Iteration is and How it is Used
  • Introducing the DO Opcode and its variants DO Until and DO While

Unit 5 RPG ADVANCED INDICATORS

  • Flow of Control Using Indicators and Structured Programming Opcodes
  • Setting and Unsetting Indicators
  • Treating Indicators as Fields and Array Elements

Unit 6 RPG/400 PROGRAMMING MASTERY TEST

 
© Copyright 2007. All rights reserved. Interskill Learning, Inc.