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: Moogurisar Kele
Country: Swaziland
Language: English (Spanish)
Genre: Photos
Published (Last): 2 July 2013
Pages: 17
PDF File Size: 17.34 Mb
ePub File Size: 20.41 Mb
ISBN: 591-1-23371-129-7
Downloads: 4973
Price: Free* [*Free Regsitration Required]
Uploader: Yozragore

Where the user is at in the subfile How big the subfile is What proportion of the subfile the user is viewing. When the Page Up key is pressed, your program handles the processing. DDS keyword entries for display files positions 45 through Select Subfile display layout.

This field must be a zoned decimal field with zero decimal positions. 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 as040 whose relative record number is in this field.

It must have the keyboard shift attribute of signed numeric S in position 35and it can be up to 4 digits in length.

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. Columns description Let’s add some proprieties to the Client ID field. For the 24 x 80 display size, positions 78 through 80 of the last line subfille by the subfile are used for the beginning attribute character, plus sign, and ending attribute character.

  GRABOWSKI IWANCZEWSKA PDF

SFLEND (Subfile End) keyword for display files

Press Enter to go back to the previous screen. Thus no fields can occupy more than one line of sunfile subfile. 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. Creating an input field Notice how the field spread across the 9 line you previously defined as the subfile page size.

For selection lists, the More and Bottom text is positioned to the right of the choices for the list. These indicators allow us to manipulate the status of the subfile from the RPG code. Let’s see how that’s done. 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 Subfi,e doesn’t exist or it doesn’t have any associated cards. For instance, it reads the subfile, clears it, rewrites the subfile with new records, and displays it again.

subfilw

If an input field occupies the location of the plus sign and the field is changed, the plus sign and its attribute characters are returned to the program as data in the field. A subfile is a display aa400 where you can place a listing of values and process changes on the list.

SFLEND (Subfile End) keyword for display files

To make the manipulation of several tables easier, we’ll create a view with the fields we’ll use on the subfile. Your program cannot find out, when the IBM i operating system is paging through the subfile, which page of the subfile is displayed.

SFLRCDNBR Subfile Record Number keyword for display aas400 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. TOP record Let’s create the subfile now.

  DA LITE 82433 PDF

SFLRCDNBR (Subfile Record Number) keyword for display files

Press Page Down to see the remaining fields. It does not display the plus sign, the Bottom text, or the scroll bar with the scroll box on top of the bottom scroll button if the indicator is on. Adding the selected fields to the record The final result: Options These indicators allow us to manipulate the status of the subfile from the RPG code.

The plus sign or More text indicates that the workstation user can move the text lines on the subfile to display more records by subcile the Page Up key. You have to activate some options now: Options Press Enter until subfils back on this screen: If CURSOR is specified, the cursor is placed in the subfile record whose relative record number is identified by the contents of this field. If there is not room for the extra line on the display or in a window, a message is issued at file-creation time and the file is not created.

Sbfile format of the keyword is: 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. 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.