18 May, 2012
Text Size

Audience

Programmers responsible for writing and/or maintaining RPG IV code. Part one is designed for programmers new to RPG. Part two may be attended by programmers with some experience of RPG IV who need to learn about more advanced features in RPG IV.

Prerequisites

Before taking this course, a student should:

  • Have a basic knowledge of the development environment (WDSC/RSE/Rdi or PDM/SEU) available through i for Application Developers and/or WDSC/RSE/RDi for Programmers.
  • Know about the concepts of externally described files (i.e. DDS or SQL) available through i for Application Developers.
  • Be familiar with the system facilities (menus, CL commands, jobs, etc) available through i for Application Developers.
  • Have a basic knowledge of programming (sequence, loops, subroutines etc.)

Duration

5 days. Hands on.

Course Objectives

On completion of the course, participants should be able to code and debug simple RPGIV programs, both interactive and batch. Specifically the student will understand:

  • How data is stored and manipulated by RPG.
  • RPGIV coding structure, indicators, operation codes, etc.
  • Record retrieval operations.
  • Workstation and printer file handling.
  • Arrays and tables.
  • Program calling and parameter passing.
  • Structured programming techniques.
  • Data structures and data areas.
  • Multiple occurrence data structures.
  • Subfiles.
  • Basics of ILE.
  • Error Handling.
  • Debugging.

Course Content

A brief history
Introduction
Coding RPG
Structured Operation Codes
Indicators and BIFs
Using Files in RPG
Interactive Debug
More Features and Screen Handling
Subroutines & Modular Design
Call with Prototype
Subfiles
More File Handling
Legacy RPG

Advanced Data Declarations
Other Data Types
Arrays
Data Structures
Qualified Data Structures
Data Structure Arrays
Data Areas
Multiple Occurrence Data Structures
Reserved values

More Operation Codes
Date and Time Manipulation
Subprocedures (Part 1)
P-Spec
Structure
Subprocedure Vs Subroutine

Introduction to ILE
Static Binding Vs Dynamic Binding
Bind By Copy
Bind By Reference
Service Programs

Subroutines (Part 2)
Subprocedures Vs Called Programs
NOMAIN Modules

ILE - Other Topics
Binding Directories
Binder Language
Activation Groups

Error Handling
More BIFs
Advanced Subfiles

Course Contact Form

Please complete the form to enquire about running a course at your premises or one of our training facilities

Name:

Email:

Telephone:

Organisation:


Comment: