AS400 SUBFILE PDF

You use this field-level keyword on the subfile-control record format to specify that the page of the subfile to be displayed is the page that contains the record. The following is an RPG subfile example with a selection option. This example loads the entire subfile at one time. You use this record-level keyword on the subfile-control record format to enable the display of a plus sign (+) or text (More or Bottom) in the lower-right display.

Author: Zululkree Fenrijar
Country: Papua New Guinea
Language: English (Spanish)
Genre: Music
Published (Last): 26 March 2013
Pages: 14
PDF File Size: 8.11 Mb
ePub File Size: 8.56 Mb
ISBN: 281-4-19040-312-2
Downloads: 47604
Price: Free* [*Free Regsitration Required]
Uploader: Niktilar

With subfiles you can create a display file with lists of items. Let’s see how that’s done.

SFLRCDNBR (Subfile Record Number) keyword for display files

A subfile is a display file where you xs400 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 subfle of several tables easier, we’ll create a view with the fields we’ll use on the subfile.

  CARTA A LOS INDIGNADOS ENRIQUE DUSSEL PDF

IBM RPG Subfile Example with Record Selection – United States

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. Sunfile 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.

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. Subfiles With subfiles you can create a display file with lists of items.

Bottom record And the TOP record like this: TOP record Let’s create the subfile now. Creating the subfile record When you press Enter a new record appears.

SFLRCDNBR (Subfile Record Number) keyword for display files

Creating the subfile control This field creates a subfile control record, which works like the heading on the list. 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.

  A ORAO DE JABEZ PDF

Select the option Select Record Keyword: Options Choose Overlay keywords: Options Select Overlay without erasing: Options Press Enter until you’re back on this screen: Selecting fields Type the titles of the subfile’s columns and a separating line: Columns description Let’s add some proprieties to the Client ID field.

Error Messages Insert the following information: Creating an input field Notice how the field spread across the 9 line you previously defined as the subfile page size.

Selected fields Place the fields on their positions: Adding the selected fields to the record The final result: Executing the subfile Source code.

admin