4 to 6 hours
Personnel requiring knowledge of subfile programming
Completion of the courses Subfile Programming Part 1 and Part 2, and knowledge of data processing, programming concepts, and the iSeries operating system
After completing this course, the student will be able to:
• Identify a Load by Page subfile and a File Maintenance subfile
• Identify the DDS used to create a Load by Page subfile
• Recognize the RPG code that supports a Load by Page subfile
• Recognize the DDS used to create a File Maintenance subfile
• Recognize the RPG code that supports a File Maintenance subfile
Examine an Example of a File Load by Page Subfile
List Function
DDS of Subfile Formats
The DDS for the Subfile and Record Formats
Conditioning Keywords and Indicators
Files and Subroutines Used in the Pick List/ Inquiry Program
Supporting RPG Code
The Workings of the GETPAG Subroutine Called from *INZSR
Adding Records to the Subfile
Displaying “More...” or “Bottom”
Operation of an Example Subfile
How Enter, F3, and Subfile Selections of 1 and 5 Are Processed
Using a Loop to Process the User’s Response
When and How the Program Processes a Subfile Rollup Request
Examine an Example of a File Maintenance
DDS for the Display File
The Keywords SFLRNA, SFLNXTCHG, and SFLMSG
The RPG Code to Read and Display the File Maintenance Subfile
Flow of Control
The RPG and DDS Used to Maintain Order Details in a Subfile
Adding a New Item to an Order List
Deleting an Order Line
How Data is Updated on the ORDERS and LINES Files