Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
The Link Data Definition (LNKDTADFN) command links or unlinks file definitions in a dictionary, program-described files, or externally-described files.
Restriction: A file cannot be linked if it is already linked. However, a definition can be linked to several files at the same time.
Note: If file text and the file definition are not the same, a new version of the definition is created.
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
OPTION | Option | *LINK, *UNLINK | Required, Positional 1 |
FILE | Data base file | Single values: *ALL Other values: Qualified object name |
Required, Positional 2 |
Qualifier 1: Data base file | Name | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB | ||
DTADCT | Data dictionary | Name | Optional |
DFN | File definition | Name | Optional |
CRTDATE | Creation date | Date, *FIRST | Optional |
Top |
Specifies the action that is performed on the program-described file, externally-described file, or file definition.
Note: Externally-described files can only be unlinked.
This is a required parameter.
The possible values are:
Top |
Specifies the name and library of the program-described file or externally-described file to be linked or unlinked.
This is a required parameter.
The possible file values are:
Qualifier 2: Library
Top |
Specifies the name of the dictionary that contains the file definition being linked or unlinked to the program-described file. A name is required if *LINK is specified for the Option prompt (OPTION parameter), or if *ALL is specified for the Data base file prompt (FILE parameter) and *UNLINK is specified for the Option prompt (OPTION parameter).
Top |
Specifies the name of the file definition being linked to the program-described file. This parameter is not applicable if *UNLINK is specified for the Option prompt (OPTION parameter).
Top |
Specifies the creation date of the file definition being linked to the program-described file. This information is ignored if *UNLINK is specified for the Option prompt (OPTION parameter).
The possible values are:
Top |
LNKDTADFN OPTION(*LINK) FILE(MYLIB/MYFILE) DTADCT(MINE) DFN(MYDEF)
This command links definition MYDEF in dictionary MINE, to the program-described database file MYFILE located in library MYLIB.
Top |
*ESCAPE Messages
Top |