LIKE
Use
LIKE is an optional keyword for the following subcommands:
- ACTIVITY_FILECTL
- DISCARD_FILECTL
- IC
- OFILECTL
- PLAN_FILECTL
Related keyword
DSNAME
Syntax
Parameters
Specify a 1-character to 64-character data set name or data set mask. Enclose the mask in single or double quotes. Use the following variables, as necessary, to create the mask:
Variable | Description |
|---|---|
&AREA | Area name |
&AREA# | 3-digit area number |
&AREA4# | 4-digit area number |
&AREA5# | 5-digit area number |
&DATE | Current date ('Dyyddd') in its default form (local or UTC) |
&DBD | dbdname |
&JOBN | Job name |
&LCLDATE | Current date ('Dyyddd ') in local form |
&LCLTIME | Current time ('Thhmmss ') in local form |
&PROCSN | Procedure step name |
&STEPN | Step name |
&TIME | Current time ('Thhmmss') in its default form (local or UTC) |
&UTCDATE | Current date ('Dyyddd ') in UTC form |
&UTCTIME | Current time ('Thhmmss ') in UTC form |
If you specify DSNAME=‘PFP.TEST.DB.&AREA’ and the area name is A123, the resulting data set name will be PFP.TEST.DB.A123. If you specify DSNAME='PFP.TEST.DB.PF&AREA#' and the area number is 026, the resulting data set will be PFP.TEST.DB.PF026. This data set will have the same SMS attributes as the data set specified on the LIKE keyword. If you specify DSNAME='PFP.TEST.DB.PF&AREA5#' and the area number is greater than 999 (1024 for example), a 5-digit area number will be substituted for the &AREA5# variable. The resulting data set name will be PFP.TEST.DB.PF01024.
Using the &AREA4# or &AREA5# variable in place of the &AREA# variable allows you to standardize the length of the generated data set names when using 1000 or more areas while still supporting area numbers 1 through 999.
Default
None
Alias
None