Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
untitled
Title Page
Copyright Page
Dedication
Acknowledgments
Table of Contents
Table of Contents
Preface
Chapter 1 - Introduction to Programming and RPG
Programming
History of RPG
Program Variables
Objects, Data Files, and the Data Hierarchy
Programming Specifications
The Program Development Cycle
Program Entry and Testing
Chapter Summary
Key Terms
Discussion/Review Questions
Exercises
Chapter 2 - Getting Started
RPG IV Specifications
RPG Specifications for a Sample Program
File Description Specifications
Input Specifications
Output Specifications
Calculation Specifications
Internal Documentation
The Completed Program
Output Editing
Chapter Summary
Key Terms
Discussion/Review Questions
Exercises
Programming Assignments
Chapter 3 - Externally Described Files
The i5/OS Approach to Database Files
Physical and Logical Files
Introduction to DDS
Physical Files
Logical Files
Creating Database Files
RPG IV Programming with Externally Defined Files
Externally Described Printer Files
Putting It All Together
Chapter Summary
Key Terms
Discussion/Review Questions
Exercises
Programming Assignments
Chapter 4 - Defining Data with Definition Specifications
Introducing Definition Specifications
Defining Standalone Variables
Assigning Initial Values to Data
Defining Constants
Defining Data Structures
Using Like, Likeds, and Likerec
Using Definitions in a Program
Chapter Summary
Key Terms
Discussion/Review Questions
Exercises
Programming Assignments
Chapter 5 - Using Arithmetic Operations and Functions
Simple Numeric Assignment
Using Eval for Arithmetic
Using Built-in Functions
Chapter Summary
Key Terms
Discussion/Review Questions
Exercises
Programming Assignments
Chapter 6 - Processing Character Data
Simple Character Assignment
Concatenating Character Values
Using Built-in Functions with Character Data
Using Variable-Length Character Variables
Chapter Summary
Key Terms
Discussion/Review Questions
Exercises
Programming Assignments
Chapter 7 - Working with Dates
Defining Date-Related Data
Understanding Date Formats
Simple Date Assignment
Simple Date Arithmetic
Using Built-in Functions with Dates
Chapter Summary
Key Terms
Discussion/Review Questions
Exercises
Programming Assignments
Chapter 8 - Controlling Program Workflow
Structured Design
Top Down Design
Chapter Summary
Key Terms
Discussion/Review Questions
Exercises
Programming Assignments
Chapter 9 - Using Arrays and Tables
Representing Tables of Data
Arrays
Tables
Chapter Summary
Key Terms
Discussion/Review Questions
Exercises
Programming Assignments
Chapter 10 - Accessing and Updating Database Files
Operations for Input Files
Operations for Output Files
Update Files and I/O Operations
File and Record Locking
Putting It All Together
Chapter Summary
Key Terms
Discussion/Review Questions
Exercises
Programming Assignments
Chapter 11 - Writing Interactive Applications
Batch and Interactive Programs
Display Files
Additional DDS Keywords
Interactive File Maintenance
Screen Design and CUA
Chapter Summary
Key Terms
Discussion/Review Questions
Exercises
Programming Assignments
Chapter 12 - Calling Programs and Passing Parameters
Modular Programming
Prototyping the Call Interface
Callp (Call a Prototyped Procedure or Program)
The Procedure Interface
Changing Parameters, the Return Operation, and *Inlr
Fitting the Pieces
Passing Parameters by Read-Only Reference
Using a Modular Approach
APIs
Data Areas
Chapter Summary
Key Terms
Discussion/Review Questions
Exercises
Programming Assignments
Chapter 13 - Building Modular Programs with Procedures
Dynamic Program Calls and Static Binding
Procedures and Subprocedures
Creating Service Programs
Chapter Summary
Key Terms
Discussion/Review Questions
Exercises
Programming Assignments
Chapter 14 - Handling Errors
Capturing Operation Code Errors
Finding Data Errors
The INFSR Subroutine
The *PSSR Subroutine
Chapter Summary
Key Terms
Discussion/Review Questions
Exercises
Programming Assignments
Chapter 15 - Programming with Subfiles
Subfiles
Loading the Subfile
Subfiles and Change
Uses of Subfiles
Chapter Summary
Key Terms
Discussion/Review Questions
Exercises
Programming Assignments
Appendix A - RPG IV Summary
Appendix B - RPG IV Style Guide
Appendix C - Program Development Tools
Appendix D - Program Testing and Debugging
Appendix E - Maintaining the Past
Appendix F - Data Files
← Prev
Back
Next →
← Prev
Back
Next →