The following procedure describes how to generate a code book
for datasets. In order to generate the code book, a dataset and
its format file should share a common name field. You can generate
code book using a dataset with a format file or with a format catalog.
If a dataset has no format file, then you create the format file
or use format catalog. The sample code to geneate the format file
and a sample dataset are basefmt.txt.
and base.txt respectively. Then you use the
code codebook.txt to generate a code
book with the following statement.
%CODEBOOK(fmtin=basefmt, din=base, htmlout=base.html);
If you use a format catalog such as the one called "w2form"
stored in directory "J:\Projects\watchII\data\new". Then
the statement to generate code book is as follow:.
%CODEBOOK(fmtin=fmt, din=base, htmlout=base.html);
Here is a sample output: base.html.
|