Enabling applications to use AUTOTYPE

You can enable applications to use AUTOTYPE by making some minor panel modifications as follows:

  1. 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
  2. At the end of the )REINIT section add this line in column 1.
    REFRESH (*)
  3. 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:

  1. The variable containing the Cursor field name
  2. The variable containing the cursor offset
  3. The name of the Project variable on the panel
  4. The name of the first Group variable.
  5. The name of the second Group variable
  6. The name of the third Group variable
  7. The name of the fourth Group variable
  8. The name of the Type variable
  9. The name of the Member variable
  10. The name of the Other Data Set Name variable
  11. 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 V2R2 ISPF Dialog Tag Language Guide and Reference for more information.