DSNU CLIST command syntax

You can execute the DSNU CLIST command from the TSO command processor or from the DB2I Utilities panel.

Syntax

Read syntax diagramSkip visual syntax diagram% DSNU UTILITY( utility-name)INDSN( data-set-name( member-name))CONTROL(NONE)CONTROL(:control-option)DB2I(NO)DB2I(YES)DISCDSN( data-set-name1)COPYDSN( data-set-name1)COPYDSN2( data-set-name1)RCPYDSN1( data-set-name1)RCPYDSN2( data-set-name1)RECDSN( data-set-name1)PUNCHDSN(data-set-name1)EDIT(NO)EDIT(SPFTSO)RESTART(NO)RESTART(CURRENTPHASEPREVIEW)SUBMIT(NO)SUBMIT(YESPROMPT)SYSTEM(DSN)SYSTEM(subsystem-namegroup-attach)UID( utility-id)UNIT(SYSDA)UNIT(unit-name)VOLUME( vol-ser)LIB( data-set-name)
Notes:
  • 1 All data sets must be cataloged.

DSNU CLIST option descriptions

The parentheses that are shown in the following descriptions are required.

%
Identifies DSNU as a member of a command procedure library. Specifying this parameter is optional; however, it does improve performance.
UTILITY (utility-name)
Specifies the utility that you want to execute.

For a list of the online utilities that you can specify, see Table 1.

INDSN(data-set-name(member-name))
Specifies the name of the data set that contains the utility statements. If the data set is partitioned, also specify the member name (member-name).

Do not specify a data set or member that includes double-byte character set (DBCS) data.

CONTROL(control-option: …)
Specifies whether to trace the CLIST command execution.

The default value is NONE, which omits tracing. NONE generates a CONTROL statement with the options NOLIST, NOCONLIST, and NOSYMLIST.

Otherwise, you can specify one or more of the following options. Separate items in the list by colons (:). To abbreviate, specify only the first letter of the option.

LIST
Displays TSO commands after symbolic substitution and before command execution.
CONLIST
Displays CLIST commands after symbolic substitution and before command execution.
SYMLIST
Displays all executable statements (TSO commands and CLIST statements) before the scan for symbolic substitution.
DB2I
Indicates whether the DSNU CLIST command is being called from the DB2I environment.
(NO)
The command is not being called from the DB2I environment.
(YES)
The command is called from the DB2I environment.

Only the DB2I utility panels are to execute the CLIST command with DB2I(YES).

DISCDSN (data-set-name)
The name of the data set to be used as a discard data set. DISCDSN applies only to the LOAD and REORG utilities. For LOAD, this data set holds records that are not loaded. For REORG, this data set holds records that are not reloaded.
COPYDSN(data-set-name)
The name of the data set to be used as the output data set. COPYDSN is required for COPY, MERGECOPY, and REORG with SHRLEVEL REFERENCE or CHANGE. COPYDSN is optional for LOAD and REORG with SHRLEVEL NONE.
COPYDSN2 (data-set-name)
The name of the data set to be used for the backup copy. COPYDSN2 is optional for COPY, MERGECOPY, LOAD, and REORG.
RCPYDSN1 (data-set-name)
The name of the data set to be used for the remote-site primary copy. RCPYDSN1 is optional for COPY, LOAD, and REORG.
RCPYDSN2 (data-set-name)
The name of the data set to be used for the remote-site backup copy. RCPYDSN2 is optional for COPY, LOAD, and REORG.
RECDSN (data-set-name)
The name of the data set that LOAD is to use for input or that REORG TABLESPACE or UNLOAD is to use as the unload data set. RECDSN is required for LOAD and REORG TABLESPACE.
PUNCHDSN (data-set-name)
The name of the data set that REORG or UNLOAD is to use to hold the generated LOAD utility control statements for UNLOAD EXTERNAL or DISCARD.
EDIT
Specifies whether to invoke an editor so that you can edit the temporary file that the CLIST command generates.
(NO)
Does not invoke an editor.
(SPF)
Invokes the ISPF editor.
(TSO)
Invokes the TSO editor.
RESTART
Specifies whether this job restarts a current utility job, and, if so, at what point it is to be restarted.
(NO)
Indicates that the utility is a new job, not a restarted job. The utility identifier (UID) must be unique for each utility job step.
(CURRENT)
Restarts the utility at the most recent commit point.
(PHASE)
Restarts the utility at the beginning of the current stopped phase. You can determine the current stopped phase by issuing the DISPLAY UTILITY command.
(PREVIEW)
Restarts the utility in PREVIEW mode. While in PREVIEW mode, the utility checks for syntax errors in all utility control statements, but normal utility execution does not take place.
SUBMIT
Specifies whether to submit the generated JCL for processing.
(NO)
Does not submit the JCL data set for processing.
(YES)
Submits the JCL data set for background processing by using the TSO SUBMIT command.
(PROMPT)
Prompts you, after the data set is processed, to specify whether to submit the JCL data set for batch processing. You cannot use PROMPT when the CLIST command is executed in the TSO batch environment.
SYSTEM (subsystem-name)
Specifies the Db2 subsystem or group attachment name or subgroup attachment name. The default value is DSN.
UID (utility-id)
Provides a unique identifier for this utility job within Db2.

Do not reuse the utility ID of a stopped utility that has not yet been terminated, unless you want to restart that utility. If you do use the same utility ID to invoke a different utility, Db2 tries to restart the original stopped utility with the information that is stored in the SYSUTIL directory table.

The default value is tso-userid.control-file-name, where tso-userid is your TSO user ID and control-file-name is one of the following values:

Table 1. Control-file name for each utility
Utility control-file-name
CHECK INDEX DSNUCHI
CHECK DATA DSNUCHD
CHECK LOB DSNUCHL
COPY DSNUCOP
DIAGNOSE DSNUDIA
LOAD DSNULOA
MERGECOPY DSNUMER
MODIFY DSNUMOD
QUIESCE DSNUQUI
REBUILD INDEX DSNUREB
RECOVER DSNUREC
REORG INDEX DSNURGI
REORG LOB DSNURGL
REORG TABLESPACE DSNURGT
REPAIR DSNUREP
REPORT DSNURPT
RUNSTATS DSNURUN
STOSPACE DSNUSTO
UNLOAD DSNUUNL
UNIT (unit-name)
Assigns a unit address, a generic device type, or a user-assigned group name for a device on which a new temporary or permanent data set resides. When the CLIST command generates the JCL, it places unit-name after the UNIT clause of the generated DD statement.

The default value is SYSDA.

VOLUME (vol-ser)
Assigns the serial number of the volume on which a new temporary or permanent data set resides. When the CLIST command generates the JCL, it places vol-ser after the VOL=SER clause of the generated DD statement. If you omit VOLUME, the VOL=SER clause is omitted from the generated DD statement.
LIB (data-set-name)
Specifies the data set name of the Db2 subsystem library. The value that you specify is used as the LIB parameter value when the DSNUPROC JCL procedure is invoked.