September 16, 2020

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: Kagataxe Nikobei
Country: Kosovo
Language: English (Spanish)
Genre: Education
Published (Last): 6 May 2016
Pages: 218
PDF File Size: 6.29 Mb
ePub File Size: 6.39 Mb
ISBN: 308-2-19085-610-5
Downloads: 13376
Price: Free* [*Free Regsitration Required]
Uploader: Bakasa

TOP record Let’s create the subfile now. 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. Adding the selected fields to the record The final result: Your program must set the indicator on or off when displaying the subfile.

AS/ Chapter 9: Subfiles

Bottom record And the TOP record like this: Options Select Overlay without erasing: Paging is provided by the IBM i operating system. Error Messages Insert the following information: This line is needed for the text More and Bottom. SFLRCDNBR Subfile Record Number keyword for display files 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.

By default it must be named FLD, or something like it. The plus sign or More text indicates that the workstation user can move the text lines on the subfile to display more records by pressing the Page Up key.

Options Press Enter until you’re back on this screen: Executing the subfile Source code. The scroll bar is displayed with the scroll box just above the subfille scroll button.

  DKVM 440 PDF

SFLRCDNBR (Subfile Record Number) keyword for display files

Options On the General Keywords menu insert the data you see below: These indicators allow us to manipulate the status of the subfile from the RPG code.

No fields of the subfile can use those columns. Creating the subfile control This field creates a subfile control record, which works like the heading on the list. For instance, it reads the subfile, clears it, rewrites the subfile with new records, and displays it again.

SFLEND (Subfile End) keyword for display files

You must be careful selecting the fields. 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.

Selecting fields Type the titles of the subfile’s columns and a separating line: If there is not room for the extra line on the display or as4000 a window, a message is issued at file-creation time and the file is not created. If CURSOR is specified, the cursor is placed in the subfile record whose relative record number is identified by the contents of this field. A subfile is a display file where you can place a listing of values and process changes on the list.

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. Thus no fields can occupy more than one line of the subfile. The scroll bar is shown for graphical displays. Ad400 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 as4400. Selected fields Place the fields on their subfioe The scroll bar will be displayed with buttons, a shaft, and a scroll box which covers the entire shaft.

  APT GORIZIA PDF

Your program cannot find out, when the IBM i operating system is paging through the subfile, which page of the subfile is displayed.

For the 27 x display size, positions through of the last line occupied by the subfile are used for the beginning attribute character, plus sign, and ending attribute character. 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.

Let’s see how that’s done. Subfild this example, either the program or the workstation user can set the value of the field before displaying the subfile.

This field must be a zoned decimal field with zero decimal positions. Check out the Display file chapter if you don’t remember how to do this. Select the option Select Record Keyword: 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 record format, an error is returned to your program.

With subfiles you can create a display file with lists of items. Columns description 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. The second parameter tells the system what scrolling indicator should be used for nongraphical displays.

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.