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: Kigall Viktilar
Country: Turkey
Language: English (Spanish)
Genre: Science
Published (Last): 24 February 2012
Pages: 63
PDF File Size: 20.19 Mb
ePub File Size: 15.73 Mb
ISBN: 928-3-90557-757-3
Downloads: 77191
Price: Free* [*Free Regsitration Required]
Uploader: Vudozahn

Creating the subfile control This field creates a subfile control record, which works like the heading on the list.

No fields of the subfile can use those columns. This field must be a zoned decimal field with zero decimal positions.

AS/ Chapter 9: Subfiles

For instance, it reads the subfile, clears it, rewrites the subfile with new records, and displays it again. If Subfilf is specified, the cursor is placed in the subfile record whose relative record number is identified by the contents of this field. Your program cannot find out, when the IBM i operating system is paging through the subfile, which page of the subfile is displayed.

Let’s add some proprieties to the Client ID field. When the last record is written to the subfile, indicator 49 is set on, which disables the Page Down key and causes the Bottom text to appear instead of the More text.

SFLRCDNBR (Subfile Record Number) keyword for display files

If there is not room for the zs400 line on the display or in a window, a message is issued at file-creation time and the usbfile is not created. This line is needed for the text More and Bottom. Bottom record And the TOP record like this: To make the manipulation of subgile tables easier, we’ll create a view with the fields we’ll use on the subfile. When the last page of the subfile is displayed, the operating system displays the plus sign, the More text, or the scroll bar with the scroll box one page size above the scroll button if the indicator is off.

  EL EVANGELIO DE QUETZALCOATL 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 whose relative record number is in this field. Set the indicators off to display the plus sign or the More text.

SFLRCDNBR (Subfile Record Number) keyword for display files

Multiple line subfiles can be used. When the last record is written to the subfile, indicator 49 is set on, which disables the Page Down key and omits the plus sign from the display. When the Page Up key is pressed, your program handles the processing.

For the 24 x 80 display size, positions 78 through 80 of the last line occupied by the subfile are used for the beginning attribute character, plus sign, and ending attribute character.

SFLRCDNBR Subfile Record Number subile for display files You use this field-level keyword on the subfile-control record format to specify that the page of the subfile to as4000 displayed is the page that contains the record whose relative record number is in this field.

If a graphical display is not used, then the More text appears at the lower right corner of the display on the line immediately following the subfile if there are more records to see in the subfile. By default it must be named FLD, or something like it. The sbufile bar is displayed with the scroll box just above the bottom scroll button. Sufile list of members that you can see in the PDM is an example of a subfile. For the 24 x 80 display size, positions 67 through 80 of the line immediately following the last line occupied by the subfile are used for the beginning attribute character, the right-aligned More or Bottom text, and the ending attribute character.

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.

  HP ENVY 15-J048TX PDF

SFLEND (Subfile End) keyword for display files

Options These indicators allow us to manipulate the status of the subfile from the RPG code. If your program sets off the indicator for SFLEND when displaying the subfile, either the plus sign, the More text, or the scroll bar with the scroll box one page size above, the scroll button is displayed with the last page of the subfile. The scroll bar is displayed with the scroll box placed at a position on the scroll bar that best represents where the user is in the subfile.

Press Enter to go back to the previous screen. Select the option Select Record Keyword: For the 24 x 80 display size, positions 77 through 80 of every line of the subfile will be reserved for the scroll bar.

The scroll bar will be displayed with buttons, a shaft, and a scroll box which covers the entire shaft.

Options Press enter to go back. Options On the General Keywords menu insert the data you see below: If a value less than 1 or a value greater than the number of records in the subfile is contained in this field on an output operation to the subfile-control subbfile format, subile error is returned to your program.

Creating the subfile record When you press Enter a new record appears. Executing the subfile Source code.

Your program must set the indicator on or off when displaying the subfile. By default the record list is already visible on the design screen. TOP record Let’s create the subfile now. Selecting fields Type the titles of the subfile’s columns and a separating line: Let’s see how that’s done.

For selection lists, the More and Bottom text is positioned to the right of the choices for the list. Both versions of the subfile folded or truncated must occupy three lines. Select Subfile display layout.