Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
The Add Data Definition (ADDDTADFN) command copies file, record format, and field definitions from an externally described database file to a data dictionary.
When definitions are added to a dictionary, the system does a search to find out if the dictionary contains a definition with the same name as the one being added. If an exact match of the definition is found, the existing definition is used. If an exact match is not found, a new version of the definition is created.
Database files using the following functions are not added to a dictionary:
Only format and field definitions of database files using the following functions are added to a dictionary:
Note: When adding a file that is already linked, the current link is ended and then the definition is added and linked.
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
FILE | Data base file | Qualified object name | Required, Positional 1 |
Qualifier 1: Data base file | Name | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB | ||
DTADCT | Data dictionary | Name | Required, Positional 2 |
DFN | File definition | Name, *FILE | Optional, Positional 3 |
Top |
Specifies the name and library of the externally described database file from which the definition is copied to the specified dictionary.
This is a required parameter.
Qualifier 2: Library
Top |
Specifies the name of the dictionary to which the definitions are added. This is a required parameter.
Top |
Specifies the name the file definition is given when it is copied into the dictionary.
The possible values are:
Top |
ADDDTADFN FILE(MYLIB/MYFILE) DTADCT(MINE) DFN(*FILE)
This command copies the definitions from MYFILE located in library MYLIB to the dictionary MINE. The file definition has the same name as the database file specified in the FILE parameter.
Top |
*ESCAPE Messages
Top |