Work with Data Definitions (WRKDTADFN)

Where allowed to run: Interactive environments (*INTERACT *IPGM *IREXX *EXEC)
Threadsafe: No
Parameters
Examples
Error messages

The Work with Data Definitions (WRKDTADFN) command allows you to work with data definitions. You can create, change, copy, delete, print, rename, or display where defined terms in a data dictionary are used. If the definition type is not specified, the Interactive Data Definition Utility (IDDU) Select Definition Type display is shown. The dictionary and type of definition to process is selected from this display.

Top

Parameters

Keyword Description Choices Notes
DTADCT Data dictionary Name, *PRV Optional, Positional 1
DFNTYPE Definition type *ALL, *FILE, *RCDFMT, *FLD Optional
Top

Data dictionary (DTADCT)

Specifies the data dictionary to use.

*PRV
The last data dictionary you worked with in IDDU is used.
data-dictionary-name
Specify the data dictionary name to use.
Top

Definition type (DFNTYPE)

Specifies the data definition type to use.

*ALL
Allows you to select the definition type and data dictionary from a list of all the data dictionaries and definition types.
*FILE
Allows you to work with file definitions in the data dictionary specified.
*RCDFMT
Allows you to work with record format definitions in the data dictionary specified.
*FLD
Allows you to work with field definitions in the data dictionary specified.
Top

Examples

WRKDTADFN   DFNTYPE(*FILE)

This command allows you to work with file definitions in the data dictionary you worked with last.

Top

Error messages

None

Top