手动创建新数据字典
本节描述如何手动创建一个新数据字典。以
Campaign
所创建的现有数据字典作为起点可能会更加轻松地创建新数据字典。
1.
创建空的 .dat 文件(长度为 0)和对应的
.dct
文件。
2.
在
.dct
文件中,按如下格式来定义字段:
<
Variable_name
>, <"ASCII string" or "ASCII Numeric">, <
Length_in_bytes
>, <
Decimal_point
>, <
Format
>, <
Comment
>
对 Format 使用
Unknown
并将 Comment 字段留空,如下所示:
acct_id, ASCII string, 15, 0, Unknown,
hsehld_id, ASCII Numeric, 16, 0, Unknown,
occptn_cd, ASCII string, 2, 0, Unknown,
dob, ASCII string, 10, 0, Unknown,
natural_lang, ASCII string, 2, 0, Unknown,
commun_lang, ASCII string, 2, 0, Unknown,
3.
您现在可以使用此数据字典将新表映射到文件。
Copyright IBM Corporation 2015. All Rights Reserved.