Chapter 1. Overview of the RPG IV Programming Language
Chapter 2. RPG Programming in ILE
Chapter 3. Program Creation Strategies
Strategy 1: OPM-Compatible Application
Strategy 2: ILE Program Using CRTBNDRPG
Strategy 3: ILE Application Using CRTRPGMOD
Chapter 4. Creating an Application Using Multiple Procedures
A Multiple Procedures Module — Overview
Example of Module with Multiple Procedures
Coding Considerations
For Further Information
Creating and Running an ILE RPG Application
Chapter 5. Entering Source Statements
Chapter 6. Creating a Program with the CRTBNDRPG
Chapter 7. Creating a Program with the CRTRPGMOD and CRTPGM Commands
Chapter 8. Creating a Service Program
Chapter 9. Running a Program
Running a Program Using the CL CALL Command
Running a Program From a Menu-Driven Application
Running a Program Using a User-Created Command
Replying to Run-Time Inquiry Messages
Ending an ILE Program
Managing Activation Groups
Managing Dynamically-Allocated Storage
Chapter 10. Calling Programs and Procedures
Program/Procedure Call Overview
Using a Prototyped Call
Passing Prototyped Parameters
Interlanguage Calling Considerations
Using the Fixed-Form Call Operations
Returning from a Called Program or Procedure
Using Bindable APIs
Calling a Graphics Routine
Calling Special Routines
Multithreading Considerations
Debugging and Exception Handling
Chapter 11. Debugging Programs
The ILE Source Debugger
Preparing a Program for Debugging
Starting the ILE Source Debugger
Adding/Removing Programs from a Debug Session
Viewing the Program Source
Setting and Removing Breakpoints
Setting and Removing Watch Conditions
Example of Setting a Watch Condition
Stepping Through the Program Object
Changing the Value of Fields
Displaying Attributes of a Field
Equating a Name with a Field, Expression, or Command
Source Debug National Language Support for ILE RPG
Sample Source for Debug Examples
Chapter 12. Handling Exceptions
Exception Handling Overview
Using Exception Handlers
Using RPG-Specific Handlers
ILE Condition Handlers
Using Cancel Handlers
Problems when ILE CL Monitors for Notify and Status Messages
Chapter 13. Obtaining a Dump
Obtaining an ILE RPG Formatted Dump
Using the DUMP Operation Code
Example of a Formatted Dump
Working with Files and Devices
Chapter 14. Defining Files
Associating Files with Input/Output Devices
Naming Files
Types of File Descriptions
Defining Externally Described Files
Defining Program-Described Files
Data Management Operations and ILE RPG I/O Operations
Chapter 15. General File Considerations
Overriding and Redirecting File Input and Output
File Locking
Record Locking
Sharing an Open Data Path
Spooling
SRTSEQ/ALTSEQ in an RPG Program versus a DDS File
Chapter 16. Accessing Database Files
Database Files
Using Externally Described Disk Files
Using Program-Described Disk Files
Methods for Processing Disk Files
Valid File Operations
Using Commitment Control
DDM Files
Chapter 17. Accessing Externally Attached Devices
Chapter 18. Using WORKSTN Files
Intersystem Communications Function
Using Externally Described WORKSTN Files
Using Program-Described WORKSTN Files
Valid WORKSTN File Operations
Multiple-Device Files
Chapter 19. Example of an Interactive Application
Appendixes
Appendix A. Behavioral Differences Between OPM RPG/400 and ILE RPG for AS/400
Appendix B. Using the RPG III to RPG IV Conversion Aid
Conversion Overview
Converting Your Source
Example of Source Conversion
Analyzing Your Conversion
Resolving Conversion Problems
Appendix C. The Create Commands
Using CL Commands
CRTBNDRPG Command
CRTRPGMOD Command
Appendix D. Compiler Listings
Bibliography
Index
Special Characters
Numerics
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W