Introduction to RPG Subfiles for AS400, iSeries and IBM i Power Systems

An IBM i subfile has the same setup as previous generations of AS/400 and iSeries. A subfile is a powerful feature that allows you to display and manage multiple records on a single screen. Let me break it down for you:

Purpose of Subfiles:

  • Subfiles are used to present a list of values or records to the user
  • They allow you to handle multiple records of the same type on a display screen
  • You can perform actions like scrolling through the list, selecting items, and making changes

How Subfiles Work:

  • A subfile is defined in a display file (DSPF)
  • The records displayed in the subfile are read from a database file through a program
  • The program writes the records to the device file, which is then displayed on the subfile screen

Types of Subfiles:

  • Load All Subfile: Loads the entire subfile at once. Suitable for smaller datasets
  • Page at a Time Subfile: Loads one page of records at a time. More efficient for larger datasets
  • Expanding Page  Subfile: Loads one page of records at a time, expanding as it adds pages
{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}
>