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: Fek Fenritaxe
Country: India
Language: English (Spanish)
Genre: Health and Food
Published (Last): 2 September 2012
Pages: 74
PDF File Size: 14.74 Mb
ePub File Size: 1.13 Mb
ISBN: 687-7-74336-871-4
Downloads: 87099
Price: Free* [*Free Regsitration Required]
Uploader: Vogar

Subfiles With subfiles you can create a display file with lists of items. This field must be a wubfile decimal field with zero decimal positions.

Selecting fields Type the titles of the subfile’s columns and a separating line: If your program does this, the display shows the plus sign or the More text.

SFLEND (Subfile End) keyword for display files

For the 27 x display size, positions through of every line of the subfile will be reserved for the scroll bar. The format of the keyword is: The scroll bar is displayed with sunfile scroll box just above the bottom scroll button.

The scroll bar is shown for graphical displays. Your program cannot find out, when the IBM i operating system is paging through the subfile, which page of the subfile is displayed. If the device configuration that is being subfule supports a pointer device, the scroll bar can also navigate through the subfile.

SFLRCDNBR (Subfile Record Number) keyword for display files

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. Options Press enter to go back. It must have the keyboard shift attribute of signed numeric S in position 35and it can be up to 4 digits in length. 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.

  DANNION BRINKLEY PDF

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.

The format of the keyword is: By default it must be named FLD, or something like it. When the Page Up key is pressed, your program handles the processing. 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.

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. For selection lists, the plus will be positioned to the right of the choices for the list.

AS/ Chapter 9: Subfiles

Where the user is at in the subfile How big the subfile is What proportion of the subfile the user is viewing. You have to activate some options now: Subifle this example, either the program or the workstation user can set the value of the field before displaying the subfile.

Columns description Let’s add some proprieties to the Client ID field. If CURSOR is specified, the cursor is placed in the subfile record whose relative record number is identified by the contents of this field.

For the subfie 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.

Check out the Display file ws400 if you don’t remember how to do this. Bottom record And the TOP record like this: Executing the subfile Source code. If an input field occupies the location of the plus sign and the subile is changed, the plus sign and its attribute characters are returned to the program as data in the field.

  BANTHA TRACKS PDF

If there is no input-capable field, the cursor is positioned at the first output-only or constant field. 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. 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.

With subfiles you as400 create a display file with lists of items.

By default the record list is already visible on the design screen. When the last record is written to the subfile, indicator 49 is set on, which disables the Suvfile Down key and omits the plus sign from the display. Options On the General Keywords menu insert the data you see below: Paging is provided by the IBM i operating system.

IBM RPG Subfile Example with Record Selection – United States

For selection lists, the scroll bar will be positioned to the right of the choices for the list. Creating the subfile record When you press Enter a new record appears. For other subfiles, the aw400 bar will be positioned on column Options Press Enter until you’re back on this screen: In this chapter we’ll create a subfile which will show all the cards from a client given its ID.