System i (AS/400, iSeries, i5) Introduction to Subfile Programming
Course Details:
Course code: ISRPS | View/Download data sheet (PDF) |
Duration: 1 Day | Book Course |
Price: £575 | Return to Courses |
Course Outline:
Subfile Concepts
Loading Techniques (Load ALL, Expanding, Single Page)
Introduction to SFLxxx DDS Keywords
Declare Subfile(s) to an RPG program & control relative record numbers
Design & code a structured ‘Load All’ Subfile Program
Use page control keywords such as SFLSCROLL, SFLRCDNBR
Change attributes of Subfile content when required
Process & validate Subfile input
Use Hidden fields in the Subfile
Pre-requisites:
A basic understanding of RPG programming as covered in the RPG programming course (ISR4P).
Course content:
Introduction to Subfiles
- Describe a Subfile and what it is used for
- Define the two main Subfile formats
- Understand the structure of a Subfile
- Differentiate between Subfile loading techniques:
Load All, Expanding, Single Page
Subfile DDS
- Understand Basic Subfile DDS coding
- Understand & use the main Subfile control keywords:
SFLCTL,
SFLDSP,
SFLDSPCTL,
SFLCLR,
SFLEND,
SFLSIZ,
SFLPAG - Include error messages and conditioned attributes:
SFLMSG,
SFLMSGID,
ERRSFL
“Load All” Technique
- Understand the main sub-routines required in a Subfile program:
CLEAR,
LOAD,
PROCESS - Know how to define a Subfile to an RPG program
- Define and use Relative Record Numbers for a Subfile
- Code a ‘load all’ structured Subfile program
- Control which page of data is shown when Subfile is output to display:
SFLRCDNBR,
SFLSCROLL - Control which records are read during Subfile processing:
CHAIN,
READC - Use DDS Keyword SFLNXTCHG
Additional DDS Keywords
- All Subfile format keywords
- All Subfile Control format keywords
- How to code multiple Subfiles within a program
Follow on Courses:
To enhance the knowledge gained on this course you may want to attend the Further Subfiles course (ISRST). To further your RPG programming skills you may want to attend the Advanced RPG4 Programming course (ISR4A). The Power RPG with SQL course (ISSQE) course covers making the Subfile build very efficient and flexible. Also consider the Rational Developer for i (ISRDI) course.
Schedule:
2025 | ||||||||||||
Public schedule | Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec |
Northampton | ||||||||||||
We can offer dates for this course on request – Please contact us for details. |
Schedule:
2025 |
|
Jan | |
Feb | |
Mar | |
Apr | |
May | |
Jun | |
Jul | |
Aug | |
Sep | |
Oct | |
Nov | |
Dec | |
We can offer dates for this course on request – Please contact us for details. |
Book course: