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 rollup or rolldown keys and the OS/400 program cannot move the text lines on 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 ROLLUP/ROLLDOWN keywords in files that are used in the System/36 environment.
The format for each of these keywords is:
ROLLUP[(response-indicator ['text'])] ROLLDOWN[(response-indicator ['text'])]
You can specify a response indicator with these keywords. If you do, and the appropriate paging 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 paging 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 PAGEDOWN keyword cannot be specified with ROLLUP. The PAGEUP keyword cannot be specified with ROLLDOWN.
If the OS/400 program is performing the paging 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 ROLLUP and ROLLDOWN 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 ROLLUP and ROLLDOWN keywords.
|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8 00010A N64 ROLLDOWN(52 'Roll Down') A ROLLUP(61) A
(C) Copyright IBM Corporation 1992, 2005. All Rights Reserved.