Use these file- or record-level keywords to specify that you want to use your program to handle any situation where the workstation user has pressed the pagedown or pageup keys and the OS/400 program cannot page through the display. If this situation occurs and you have not specified this keyword (whichever one is appropriate), the OS/400 program sends an error message indicating that the key is not valid at that time.
Refer to Appendix B, System/36 environment considerations for display files, for special considerations when specifying the PAGEDOWN/PAGEUP keywords in files that are used in the System/36 environment.
The format for each of these keywords is:
PAGEDOWN[(response-indicator ['text'])] PAGEUP[(response-indicator ['text'])]
You can specify a response indicator with these keywords. If you do, and the appropriate Page key is pressed, the OS/400 program sets on the specified response indicator within the input record and returns control to your program after it processes the input data. If you do not specify a response indicator and the specified Page key is pressed, the OS/400 program performs normal input record processing.
The optional text is included on the computer printout created at program compilation to explain the intended use of the indicator. This text functions only as a comment in the file or program. The apostrophes are required. If you specify more than 50 characters between the apostrophes, the text is truncated to 50 characters on the program computer printout.
These keys cause data to be returned from the display device to your program (similar to command function (CF) and Enter keys).
The ROLLUP keyword cannot be specified with PAGEDOWN. The ROLLDOWN keyword cannot be specified with PAGEUP.
If the OS/400 program is performing the page function for subfiles (SFLSIZ value does not equal SFLPAG value), you do not need to specify these keywords. For a description of what happens when PAGEDOWN and PAGEUP are specified for a subfile, see SFLROLVAL (Subfile Roll Value) keyword for display files.
Option indicators are valid for these keywords.
Example:
The following example shows how to specify the PAGEDOWN and PAGEUP keywords.
|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8 00010A N64 PAGEUP(52 'Page Up') A PAGEDOWN(61) A
(C) Copyright IBM Corporation 1992, 2005. All Rights Reserved.