z/OS ISPF Planning and Customizing
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Steps to add a new Batch option to the PDF Batch Selection Panel

z/OS ISPF Planning and Customizing
GC19-3623-00

The steps required to add a new option to the Batch Selection Panel and the panel showing Job Step Generated are listed here.

  1. Add the new option (for example, ‘99’) to panels (ISRJPA and ISRJPB). Use the PGM keyword to specify that program ISRJB2 is to receive control and use the PARM keyword to pass the name of the new option panel. For example:
    )PROC
    &ZSEL = TRANS(&ZCMD
      . . .
    
      99,'PGM(ISRJB2) PARM(ZNEW99 99)'
  2. Add new option panel ZNEW99 to the panel library. Use one of the distributed option panels (for example, ISRJP01) as a model.
  3. Develop a corresponding CLIST (referenced from panel ZNEW99 by the ZSEL variable) and skeleton (referenced from the CLIST by the file tailoring FTINCL service). Use the distributed CLISTs and skeletons (for example, ISRJC01 and ISRJS01) as models. Add the CLIST to a library accessible to ddname SYSPROC, and add the skeleton to the skeleton library.

You can also develop a new option that displays a lower-level selection panel, from which user selections invoke the Batch CLISTs.

For example:
)PROC
&ZSEL = TRANS (&ZCMD
   1,'PGM(ISRJB2) PARM(ISRJP01)'
   2,'PGM(ISPJB2) PARM(ISRJP02)'
   . . .

   9,'CMD(ZNEWCMD &ZCMD)'

In this example, the CLIST ZNEWCMD has been selected, and the parameter ZCMD (the option entered on the panel) has been passed to the CLIST. ZNEWCMD can then use the SELECT service to display a lower-level selection panel similar to panel ISRJPA, but without job statement information. When the options have been processed, the CLIST should end and return control to ISRJB1 to close the temporary data set and submit the job to TSO. If JCL was generated the invoked dialog (CLIST or PANEL) must end with a return code of 0. If no JCL was generated the dialog must either end with a return code greater than 0 or set dialog variable ZADARC to a Y in either the ISPF SHARED or PROFILE pool.

Note: If the Source Data Online field, variable ZDSCKO, is set to YES, the dialog variables required for batch option panels are the same as those for foreground processing. That is, variables PRJ1, LIB1, LIB2, LIB3, LIB4, TYP1, MEM, DSN, and ZSEL must be defined in either the )INIT, )BODY, or )PROC section of the panel displayed by ISRJB2.

If the Source Data Online, variable ZDSCKO, is set to NO, these variables are not required. However, if a data set name is not supplied to ISRJB2 in these variables, the output variables ZDSQMEM, ZDSQ, ZDSQ2, ZDSQ3, ZDSQ4, ZDS, ZDS2, ZDS3, ZDS4, ZMEM, and ZORG are blank when control is passed to the CLIST referenced in variable ZSEL in the option panel.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014