Use this field-level keyword on the first field in the subfile record format for a message subfile (Subfile (SFL) and Subfile Message Record (SFLMSGRCD) keywords specified).
It is not valid on the subfile control record format (SFLCTL). To select messages from a program message queue for display, your program places a message reference key in this field. Your program also places the name of the program message queue in the second field in the subfile record format.
This keyword has no parameters.
Option indicators are not valid for this keyword or with the associated field.
For more information about building and displaying message subfiles, see the SFLPGMQ (Subfile Program Message Queue) keyword for display files topic.
The following example shows how to specify the SFLMSGKEY keyword.
|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8 00010A R RCDMSG SFL SFLMSGRCD(3) 00020A FLDKEY SFLMSGKEY 00030A FLDPGM SFLPGMQ 00040A R SFLCTL SFLCTL(RCDMSG) 00050A 01 SFLINZ 00060A SFLPAG(17) 00070A SFLSIZ(17) 00080A SFLDSP SFLDSPCTL 00090A FLDPGM SFLPGMQ A