DSNAME


Use the DSNAME keyword to specify a mask for a data set name to use for dynamic allocation of the data set to be processed by the subcommand.

The data set name produced by the mask (after variable substitutions are performed) must conform to standard data set naming rules. It cannot contain a reference to a partitioned data set (PDS) member name. It can contain a reference to a generation data set group (GDG), with or without a relative generation number such as '(+1)'.

Related topic

If DISP=OLD or DISP=SHR is specified, the data set name must refer to an existing catalogued data set. If DISP=NEW is specified, the data set name must not refer to an existing catalogued data set.

If the data set name matches an existing GDG base name, the product will automatically append the appropriate generation information to the base name equivalent to relative generation '(+1)', if not specified explicitly. DISP=(NEW,CATLG) is required when a new generation data set is being created.

Warning

Important

The subcommand should contain either the DSNAME or DDNAME keyword. Do not specify both keywords; they are mutually exclusive.

Use

DSNAME is an optional keyword for the following subcommands:

  • ACTIVITY_FILECTL
  • CORRECTIONS_FILECTL
  • DISCARD_FILECTL
  • IC
  • IX
  • MODIFY
  • OFILECTL
  • PLAN_FILECTL

DSNAME is a required keyword for the ADD subcommand.

Related keywords

  • DATACLAS
  • DDNAME
  • DISP
  • DSKEYLBL
  • DSNTYPE
  • EXPDT
  • LIKE
  • MGMTCLAS
  • RETPD
  • SPACE
  • STORCLAS
  • UNIT
  • VOLCNT
  • VOLSER

Syntax

DSNAME=<parameter>

Parameters

Specify a 1-character to 64-character data set name mask. Enclose the mask in single or double quotation marks. Use the following variables, as necessary, to create the mask:

Variable

Description

&AREA

Area name

&AREA#

Specify the area number as 3 digits when the area number is less than or equal to 999; specify the area number as 5 digits when the area number is greater than 999

&AREA4#

4-digit area number

&AREA5#

Specify the area number as 5 digits

&DATE

Current date ('Dyyddd') in its default form (local or UTC)

&DBD

dbdname

&IMSID

IMS subsystem ID (actual IMS subsystem ID if online; subsystem ID from DFSCV000 if offline)

&INDEX

Index name

&JOBN

Job name

&PROCSN

Procedure step name

&LCLDATE

Current date ('Dyyddd ') in local form

&LCLTIME

Current time ('Thhmmss ') in local form

&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

Warning

Important

When using the UNLOAD command, the substituted value for &AREA is OAREAxxx or OARxxxxx when the mask of &AREA is used with the DSNAME keyword on the OFILECTL subcommand.

When using the BUILD, VERIFY, RESYNC, or XSCAN command, the substituted value for &INDEX is the name of the index being processed by BMC AMI Fast Path Indexer for IMS when the mask of &INDEX is used with the DSNAME keyword on the IX subcommand.

The following table provides examples of the resulting data set name that is dynamically allocated based on the specified area variable, and the area name or number of digits in the area number:

Area name/number

Specified area name variable

Dynamically allocated data set name

A123

DSNAME=’PFPTEST.DB.&AREA’

PFP.TEST.DB.A123

26

DSNAME=’PFPTEST.DB.PF&AREA#’

PFP.TEST.DB.PF026

26

DSNAME=’PFPTEST.DB.PF&AREA4#’

PFP.TEST.DB.PF0026

26

DSNAME=’PFPTEST.DB.PF&AREA5#’

PFP.TEST.DB.PF00026

1024

DSNAME=’PFPTEST.DB.PF&AREA#’

PFP.TEST.DB.PF01024

1024

DSNAME=’PFPTEST.DB.PF&AREA4#’

PFP.TEST.DB.PF1024

1024

DSNAME=’PFPTEST.DB.PF&AREA5#’

PFP.TEST.DB.PF01024

Using the &AREA#4 or &AREA5# variable instead of the &AREA# variable lets you standardize the length of dynamically allocated data set names when using 1000 or more areas, while still supporting area numbers 1 through 999.

Default

None

Alias

None

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

Fast Path/EP products reference information 4.1