InterviewSolution
| 1. |
Do You Use Message Subfiles? What Are The Necessary Keywords Required Coding A Message Subfile? |
|
Answer» • Specifying the SFLMSGRCD (24) keyword on the subfile record format identifies this subfile as a MESSAGE subfile. The parameter value specified causes the subfile to appear on line 24 of the display. • The fields MSGKEY and PGMQ are user-defined names given to the two fields required for the subfile record format for a message subfile. The only specifications allowed for them are their names and the SFLMSGKEY and SFLPGMQ keywords. • This subfile is built by a series of output operations to SFL that place messages in the subfile as subfile records. Messages are truncated to fit single LINES (76 characters or 128 characters, DEPENDING on display SIZE), and second-level help is available. This subfile is displayed by an output operation to SFLCTL. • The OS/400 program when the display station user presses a Page Up or a Page Down key pages this subfile. The SFLEND keyword allows the OS/400 program to display a plus sign whenever the subfile can be paged up. • Specifying the SFLMSGRCD (24) keyword on the subfile record format identifies this subfile as a message subfile. The parameter value specified causes the subfile to appear on line 24 of the display. • The fields MSGKEY and PGMQ are user-defined names given to the two fields required for the subfile record format for a message subfile. The only specifications allowed for them are their names and the SFLMSGKEY and SFLPGMQ keywords. • This subfile is built by a series of output operations to SFL that place messages in the subfile as subfile records. Messages are truncated to fit single lines (76 characters or 128 characters, depending on display size), and second-level help is available. This subfile is displayed by an output operation to SFLCTL. • The OS/400 program when the display station user presses a Page Up or a Page Down key pages this subfile. The SFLEND keyword allows the OS/400 program to display a plus sign whenever the subfile can be paged up. |
|