You can enable applications to use AUTOTYPE by making some minor
panel modifications as follows:
- At the beginning of the )REINIT section, add the lines shown.
Make sure the subsequent line in the )REINIT section starts in column
1 so that it does not become part of the IF clause you have inserted.
IF (&ZNXTMSG='ISRT') .CSRPOS = &ZCSRP
.CURSOR = &ZCSRV
- At the end of the )REINIT section add this line in column 1.
REFRESH (*)
- At the beginning of the )PROC section add the lines shown. Make
sure the subsequent line in the )PROC section starts in column 1 so
that it does not become part of the IF clause you have inserted. If
there is a line that says: .RET = OFF in the )PROC
section, it should go before these lines.
&ZCSRV = .CURSOR
&ZCSRP = .CSRPOS
&ZNAMES='ZCSRV ZCSRP PRJ1 LIB1 LIB2 LIB3 LIB4 TYP1 MEM DSN ZCMD
PANEXIT ( (ZNAMES) , LOAD,ISRAUTOT)
IF (&ZNXTMSG='ISRT') EXIT
Modify the line that
assigns the variable &ZNAMES. This assignment contains a list
of variable names on the panel. They must all be specified in order.
Use an asterisk (*) for names that are not relevant for your panel.
The values in the &ZNAMES variable are:
- The variable containing the Cursor field name
- The variable containing the cursor offset
- The name of the Project variable on the panel
- The name of the first Group variable.
- The name of the second Group variable
- The name of the third Group variable
- The name of the fourth Group variable
- The name of the Type variable
- The name of the Member variable
- The name of the Other Data Set Name variable
- The name of the command line variable (clears the command line)
The cursor and name variables (described here as ZCSRV, ZCSRP,
and ZNAMES) can have any names you choose but they must match the
names used in the )INIT section and the PANEXIT statement in the )PROC
section.
If a name references a read-only field, add a dash to the end of
the name. If you need to limit the size of the returned name, you
can append the maximum length, after a period, to the name; for example, ODSN.44.
You can disable member searches for a data set name field by adding
a percent sign to the end of the field name; for example, ODSN.44% or ODSN%.
Panels defined in Dialog Tag Language (DTL) can be enabled for
AUTOTYPE through DTL keywords. See the z/OS ISPF Dialog Tag Language Guide and Reference for
more information.