You can enable applications to use AUTOTYPE by making some minor panel modifications as follows:
IF (&ZNXTMSG='ISRT') .CSRPOS = &ZCSRP
.CURSOR = &ZCSRV
REFRESH (*)
&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 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 V2R2 ISPF Dialog Tag Language Guide and Reference for more information.