CL Command Reference - CRTDTADCT

CL Command List > CRTDTADCT Reference

Description:

The Create Data Dictionary (CRTDTADCT) command creates a data dictionary. A data dictionary must be created before the user can use the Interactive Data Definition Utility (IDDU) to describe and create database files. The user can create a data dictionary with IDDU or with the CRTDTADCT command.


Examples:

Example 1: Creating a Data Dictionary and Granting USE Authority

CRTDTADCT DTADCT(DEPT547) AUT(*USE)
TEXT(¡¯dept547 dictionary¡¯)

This command creates a data dictionary named DEPT547 in library DEPT547. The authority given for the dictionary to other users is *USE.



Example 2: Creating a Restricted Data Dictionary

CRTDTADCT DTADCT(DEPT245) AUT(MYLIST)
TEXT(¡¯restricted dictionary¡¯)

This command creates a restricted data dictionary named DEPT245 in library DEPT245. The authority given for the dictionary to the users comes from the authorization list named MYLIST.