Example Panel Definition
Figure 1 shows how an example SDF panel looks when it is displayed.
SYSTEM DATA CENTER SYSTEMS
SY1 GATEWAY
===>
1=HELP 2=DETAIL 3=RET 6=ROLL 7=UP 8=DN 10=LF 11=RT 12=TOP
PANEL(SYSTEM,24,80)
TEXTFIELD(01,02,10,WHITE,NORMAL)
TEXTTEXT(SYSTEM)
TF(01,25,57,WHITE,NORMAL)
TT(DATA CENTER SYSTEMS)
STATUSFIELD(SY1,04,04,11,N,,SY1SYS)
STATUSTEXT(SY1)
SF(SY1.GATEWAY,02,40,47,N,,GATEWAY)
ST(GATEWAY)
TF(24,01,79,T,NORMAL)
TT(1=HELP 2=DETAIL 3=RET 6=ROLL 7=UP 8=DN ,
10=LF 11=RT 12=TOP)
PFK1(AOCHELP SDF)
PFK2(DETAIL)
PFK3(RETURN)
PFK6(ROLL)
PFK7(UP)
PFK8(DOWN)
PFK10(LEFT)
PFK11(RIGHT)
PFK12(TOP)
ENDPANEL
In Figure 2, the panel name is SYSTEM. This panel definition can either be in a separate member referenced by an %INCLUDE statement in AOFPNLS or be directly coded in AOFPNLS. The recommended method is to use a separate member and an %INCLUDE statement. If it is in a separate member, the member name is SYSTEM. You do not have to explicitly define every PF key for the panel. PF key definitions not specified are picked up from definitions in NetView DSIPARM member AOFINIT.
| Statement | Description and Example Value |
|---|---|
PANEL(SYSTEM,24,80) |
The panel definition statement. The panel name is SYSTEM, the panel length is 24, and the panel width is 80. |
TEXTFIELD(01,02,10,WHITE,NORMAL) |
The text location statement defining constant panel fields. This field starts on line 01 in position 02 and ends in position 10. The color of the field is white and highlighting is normal. |
TEXTTEXT(SYSTEM) |
The text data statement specifying the actual data that goes in the text field just defined.
This field contains the word SYSTEM. TEXTFIELD and TEXTTEXT are always grouped in pairs. |
TF(01,25,57,WHITE,NORMAL) |
Another TEXTFIELD statement for another constant field. |
TT(DATA CENTER SYSTEMS) |
Another TEXTTEXT statement for the text field just defined. |
STATUSFIELD(SY1,04,04,11,N,,SY1SYS) |
The location of the status component field. The status component is SY1. This field starts on line 04 in position 04 and ends in position 11. The highlighting level is normal. The next panel displayed when the Down PF key is pressed is SY1SYS. |
STATUSTEXT(SY1) |
The text data used for the name of the field just defined with the STATUSFIELD statement. In
this case, the field name is SY1. STATUSFIELD and STATUSTEXT statements are grouped in pairs. |
SF(SY1.GATEWAY,02,40,47,N,,GATEWAY) |
Another STATUSFIELD definition. |
ST(GATEWAY) |
Another STATUSTEXT definition. |
TF(24,01,79,T,NORMAL) |
Here, TEXTFIELD and TEXTTEXT are used to display PF key definitions. For this panel, these are the default definitions defined in AOFINIT. If you need values differing from the defaults, there is a statement for defining PF keys unique to this panel, DPFKnn. |
PFK1(AOCHELP SDF) |
PF key definition statements. |
ENDPANEL |
The end panel statement, indicating that this is the end of definitions for this panel. |