Standard

Posted: 08/16/07

CIS 250 – Intro to RPG Programming

Course Description:

Introduces programming business applications using the RPG programming language. Topics include: introduction to RPG programming, input and output processing, arithmetic operations, edit codes/words, selection operations, control breaks, multiple control breaks, do loops, exception output, external files - physical and logical, and sequential file access methods.

 

Competency Areas:

Hours

Introduction to RPG Programming

Class

4

Input and Output Processing

D. Lab

6

Arithmetic Operations

P. Lab/O.B.I.

0

Edit Codes/Words

Credit

7

Selection Operations

 

 

Control Breaks

 

 

Multiple Control Breaks

 

 

Do Loops

 

 

Exception Output

 

 

External Files - Physical and Logical

 

 

Sequential File Access Methods

 

 

 

Prerequisite:

CIS 105

Corequisite:

 

 

Course Guide

 

Competency

After completing this section, the student will:

Hours

Class

D. Lab

P. Lab/

O.B.I.

INTRODUCTION TO RPG PROGRAMMING

1

0

0

History

Explain the origin and purpose of RPG.

 

 

 

 

Define the different versions of RPG.

 

 

 

INPUT AND OUTPUT PROCESSING

10

4

0

Input

Describe data files.

 

 

 

 

Explain input file creation.

 

 

 

 

Explain the difference between program variables (fields) and constants (literals).

 

 

 

 

Define numeric fields and alphanumeric fields.

 

 

 

 

Define the data hierarchy.

 

 

 

 

Describe input file definition on file description specifications and input specifications.

 

 

 

 

Identify the rules for naming variables.

 

 

 

Output

Describe the different types of output.

 

 

 

 

Explain the importance of creating attractive reports.

 

 

 

 

Explain line printer spacing chart use to design reports.

 

 

 

 

Describe output file definition on file description specifications and output specifications.

 

 

 

ARITHMETIC OPERATIONS

8

12

0

Computations

Identify mathematical operators (+, -, /, *, **).

 

 

 

 

Explain the order of operations of the following: (), **, /and*, +and -.

 

 

 

 

Explain numeric literal definition.

 

 

 

 

Identify various arithmetic operators (e.g., EVAL, DIV, MVR).

 

 

 

 

Explain arithmetic operation coding on calculation specifications.

 

 

 

 

Explain the importance of rounding.

 

 

 

 

Define numeric truncation and calculating proper field sizes.

 

 

 

 

Explain field definition on the definition specifications.

 

 

 

EDIT CODES/WORDS

2

2

0

Output editing

Explain output field formatting using edit codes and edit words.

 

 

 

SELECTION OPERATIONS

6

12

0

Relational comparisons

Define different relational symbols.

 

 

 

 

Explain collating sequence use of EBCDIC to evaluate expressions.

 

 

 

Decision operations

Describe IF, SELECT, and CASE decision operation use.

 

 

 

CONTROL BREAKS

3

4

0

Fundamentals

Define control break.

 

 

 

 

Define control field.

 

 

 

 

Define “Hold” field.

 

 

 

 

Explain record sorting prior to control break processing.

 

 

 

Processing

Describe what takes place when a control break occurs.

 

 

 

 

Describe EOF processing.

 

 

 

 

Describe group indication and group printing.

 

 

 

MULTIPLE CONTROL BEAKS

2

4

0

Fundamentals

Explain multiple control field hierarchy.

 

 

 

 

Explain record sorting prior to multiple control break processing.

 

 

 

Processing

Explain the need for a major control break before a minor one.

 

 

 

 

Explain what takes place for each control break.

 

 

 

 

Describe EOF processing.

 

 

 

DO LOOPS

2

6

0

Iteration fundamentals

Explain the concept of iteration.

 

 

 

Iteration operations

Describe the statements (DOW, DOU, and DO) used for looping.

 

 

 

 

Explain loop termination and early loop exiting.

 

 

 

EXCEPTION OUTPUT

1

4

0

Printing logic

Explain EXCEPT command use to print output.

 

 

 

EXTERNAL FILES - PHYSICAL AND LOGICAL

3

6

0

Concepts

Explain the advantage of creating externally described files.

Define arrival sequence and key sequence.

 

 

 

Files

Describe SEU and DDS concepts.

 

 

 

 

Explain the difference between physical files and logical files.

 

 

 

 

Describe physical and logical file coding on file description specifications, input specifications, and calculation specifications.

 

 

 

SEQUENTIAL FILE ACCESS METHODS

2

6

0

Concepts

Define file.

 

 

 

 

Describe batch processing.

 

 

 

 

Define end-of-file.

 

 

 

 

Describe the “Primer” read concept.

 

 

 

 

Explain sequential file definition on file description specifications and input specifications.

 

 

 

 

Describe the use of the READ statement and file processing concepts on calculation specifications.

 

 

 

 

Suggested Resources
Books

 

Cozzi, R. (1996). The modern RPG language. Warrenville, IL: Cozzi Research. ISBN: 1583470646

Yeager, J. (1995). Programming in RPG/400. Loveland, CO: Duke Press.

Yeager, J. (1996). Programming in RPG IV. Loveland, CO: Duke Press.