z/OS ISPF Software Configuration and Library Manager Guide and Reference
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Using SCLM variables in SCLM macros

z/OS ISPF Software Configuration and Library Manager Guide and Reference
SC19-3625-00

Some SCLM macros accept SCLM variables as input parameters. The variable names all begin with @@FLM. For example, @@FLMPRJ is the name of the project and @@FLMMBR is the name of the member. A typical parser translator will have an allocation that looks like this:

         FLMALLOC  IOTYPE=A,DDNAME=SOURCE
          FLMCPYLB @@FLMDSN(@@FLMMBR)

Valid variables are indicated in the parameter descriptions for the particular macros to which they apply. If the description of a parameter does not list valid variables, no variables can be used for that parameter. For more information on any variable mentioned in the descriptions, see SCLM Variables and Metavariables.

The variables are substituted into the string exactly as they are specified. If the data set name is ISPF.DEV1.SOURCE and the member name is TEST, the variables in the example are resolved as ISPF.DEV1.SOURCE(TEST). SCLM inserts the parentheses without the project manager having to use any concatenation characters.

This can be very useful. However, note that any stray characters before or after the variable name will also be appended. In this example, if you accidentally typed @@FLMTYPE instead of @@FLMTYP the options string resolves to ISPF.BACKUP.SOURCEE instead of ISPF.BACKUP.SOURCE:

         FLMTRNSL   CALLNAM='BACKUP  ',                                C
               FUNCTN=VERIFY,                                          C
               COMPILE=DSBKUP,                                         C
               DSNAME=SCLM.CLIST,                                      C
               GOODRC=4,                                               C
               PORDER=1,                                               C
               CALLMETH=TSOLNK,                                        C
               VERSION=1.0,                                            C
               OPTIONS='@@FLMPRJ.BACKUP.@@FLMTYPE'

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014