RPG Source Code

In this section, you will find the 'source code' for some of the
Basic AS/400 skills every programmer should know.

If you have any questions or comments, or would like to suggest some source code you would like to see, send us an E-mail.


Add/Change/Delete/Inquiry Maintenance Program
Physical File
Display File
RPG Source Code - RPG III
RPG Source Code - RPG IV
RPG with Embedded SQL

Changing Field Names
RPG-ILE Source Code

"Disk Clean-up" maintenance program
CL & RPG-ILE Source Code

Physical and Logical Files: QDDSSRC
Physical File without Key
Physical File with Unique Key on CUS#
Physical File with Key on Last and First Name
Logical File Keyed on State, Last, First Name
Logical File Selecting only Customers in Texas
Logical File Omitting Status = 'D'
Logical File Selecting only Customers in TX, OK or New Mexico
Logical File Selecting only Customers in TX that are (A)ctive

Writing a Print Program using RLU - (STRRLU)
RPG Source Code
DDS generated by RLU

Sub-File Programming to display customer list
DDS for the Display File
RPG Source Code
Customer List

Sub-File Programming using selection of customer to display listing
DDS for the Display File
RPG Source Code
Customer List

Sub-File Programming - Loading a page at a time
Physical and Logical Files
DDS for the Display File
Source Code written in old style RPG format
Source Code written in RPG-ILE
Customer Listing by Salesperson

 

 

Back to Main Page