SUBFILES IN AS400 PDF

Subfiles can be specified in the DDS for a display-device file to allow you to handle multiple records of the same type on the display. See Figure 1. A subfile is a group of records that is read from or written to a display-device file. For example, a program reads records from a database file and creates a subfile of output records. When the entire subfile has been written, the program sends the entire subfile to the display device in one write operation.

Author:Fenridal Mikagal
Country:Latvia
Language:English (Spanish)
Genre:Career
Published (Last):22 March 2010
Pages:80
PDF File Size:2.91 Mb
ePub File Size:8.74 Mb
ISBN:818-1-76098-161-6
Downloads:20964
Price:Free* [*Free Regsitration Required]
Uploader:Zulutaxe



With subfiles you can create a display file with lists of items. Let's see how that's done. A subfile is a display file where you can place a listing of values and process changes on the list. The list of members that you can see in the PDM is an example of a subfile. In this chapter we'll create a subfile which will show all the cards from a client given its ID.

To make the manipulation of several tables easier, we'll create a view with the fields we'll use on the subfile. These indicators allow us to manipulate the status of the subfile from the RPG code.

Press Enter to go back to the previous screen. Select Subfile display layout. By default the record list is already visible on the design screen. Let's add some proprieties to the Client ID field. We're going to add an indicator to this field, which will be activated when no record is found for an ID inserted either the ID doesn't exist or it doesn't have any associated cards. Option Error Messages:. You should select the fields further to the right, because they are the last ones loaded.

You must be careful selecting the fields. Press Page Down to see the remaining fields. Check out the Display file chapter if you don't remember how to do this. By default it must be named FLD, or something like it.

You have to activate some options now: Options On the General Keywords menu insert the data you see below: Options These indicators allow us to manipulate the status of the subfile from the RPG code. Options On subfile maximum size type and on the number of records for page type 9: Options Press enter to go back. Creating an input field Notice how the field spread across the 9 line you previously defined as the subfile page size.

CALENDULA ALGERIENSIS PDF

Interview Question and Answer – AS400 Subfiles

This was rather disappointing as RPGLE is over 21 years old , free format calculations 14 years old, even free format definitions RPG is in its third year. All of the examples I found looked overly complicated for a beginner, so I decided to create this post showing a simple subfile program written in modern RPG. The examples in this post are the way I would write a simple subfile program using totally free RPG. I am sure that my examples are not the way all other IBM i developers would write theirs.

MADILOG TAN MALAKA PDF

Using Subfiles

With subfiles you can create a display file with lists of items. Let's see how that's done. A subfile is a display file where you can place a listing of values and process changes on the list. The list of members that you can see in the PDM is an example of a subfile. In this chapter we'll create a subfile which will show all the cards from a client given its ID. To make the manipulation of several tables easier, we'll create a view with the fields we'll use on the subfile.

Related Articles