ISPF Panels
Target
readers
Developers
Keywords
ISPF
Panels, Dialog Services
Introduction
This document gives an idea about the Dialog
Service – Panel and also how to design the user defined Panels.
ISPF
PANELS
ISPF Panels are the screens developed using
Panel definition.
Panel Definition.
This is used to describe the format of a panel by supplying the location of
each field in the screen and by identifying the variables that are used to
provide values or output fields.
Example for Panel definition:

Panel1
)ATTR DEFAULT(%+_)
% TYPE(TEXT)
INTENS(HIGH)
+ TYPE(TEXT)
INTENS(LOW)
_ TYPE(INPUT) INTENS(LOW) CAPS(ON)
PAD('_')
# TYPE(INPUT) INTENS(LOW) CAPS(ON)
PAD('_')
! TYPE(TEXT)
INTENS(LOW) SKIP(ON)
)BODY
%-------------------------STUDENT
DETAILS-------------------------------
%COMMAND ==>_ZCMD
+
+
+STUDENT NAME
: _NAME +
+STUDENT ROLLNO : _Z
+
+
%-----------------------------------------------------------------------
)INIT
.ZVARS=ROLLNO
)REINIT
)PROC
&ZCMD=' '
VER(&NAME,NB,ALPHA)
&ZCMD=' '
IF
(&NAME ¬= ' ')
VER(&ROLLNO ,NB ,NUM)
)END
How to create a Panel definition?
The easiest way to create a panel definition
is using the ISPF/PDF editor. To define a panel the following sections are
necessary:
1.) ATTR section
2.) BODY section
3.) INIT section
4.) PROC section
5.) REINIT section
6.) END section
) ATTR section
This contains attribute character, which
identifies the characteristics of a field and attribute value, which describes
settings of the fields.
) BODY section
This defines what the panel looks like when
it’s displayed. Each line in the section corresponds to a line on the display.
) INIT section
This is one of the executable sections, which
includes statements that are processed before a panel is displayed.
) PROC section
This contains statements that are executed
after a panel is displayed. The user using VER statement uses this to validate
the input data entered.
) REINIT section
This contains statements, which are executed
first once a user input error is detected in the PROC section.
) END section
This is
used to end the loop of panel display processing.
How to view the Panel designed?
1. Use Dialog services Option (7.2)
First the library for the panel has to be set
using Dialog service option (7.6)
The following is the command used to set
library for the panel designed:
LIBDEF ISPPLIB DATASET ('**** PDS ****')
Secondly, the option 2 in the Dialog services
(7) is Panel in which panel name is to be filled.
2. Using DISPLAY command
This display command is used in the REXX
procedure to view the panel.
ISPEXEC DISPLAY PANEL (Panel-name)
REXX Source code:
----------------
/* REXX */
ADDRESS ISPEXEC
"LIBDEF ISPPLIB DATASET ID
('N019578.REXX.TOOL')"
"DISPLAY PANEL (PANEL1)"
"LIBDEF ISPPLIB"
Comments
Post a Comment