
Course Description (By Curriculum)

4 to 6 hours
Personnel requiring knowledge of subfile programming
Completion of the Subfile Programming Part 1 course, and knowledge of data processing, programming concepts, and the iSeries operating system
After completing this course, the student will be able to:
• Recognize a Data Input subfile and a File Load subfile
• Identify the DDS used to create a Data Input subfile and a File Load subfile
• Recognize the RPG code that supports a Data Input subfile and a File Load subfile
Examine an Example of a Data Input Subfile
Define a Data Input Subfile
Keywords Used on the Data Input Subfile Control Format:
- SFLPAG
- SFLSIZ
- SFLINZ
- SFLEND
- SFLDSP
- SFLDSPCTL
The RPG Code to Initialize and Display the Subfile and Process the Keyed Data
How a Subfile is Processed Using Record Number
Examine an Example of a Data Load Subfile
The Keywords Used on the File Load Subfile Control Format:
- SFLPAG
- SFLSIZ
- SFLDSP
- SFLDSPCTL
- SFLCLR
- SFLEND
How a File Load Subfile Is Cleared of Data
Preparing a Subfile
Relative Record Number
Footer Record Format
Loading the Subfile
Clearing the Subfile
The RPG Code Used to Load and Display the Subfile
Loading the Subfile
Displaying the Subfile
Reloading the Subfile