By default, the GenDoc utility stores
the HTML files that it creates in the directory that includes a
classdoc
subdirectory in the HELPLOC option. The
HELPLOC option is a SAS system option that is defined or set in the
SAS configuration file or in an AUTOEXEC file. You can also edit the
HELPLOC option for the current SAS session by selecting
ToolsOptionsSystem. You can then expand the
Environment control and
Help nodes to modify the HELPLOC option.
The HELPLOC option should
include at least two directory paths if you want to provide component
documentation. One directory path identifies the online Help files
that are shipped with SAS software. For example:
!sasroot\core\help
The second path must end with a directory named
classdoc
. For example:
d:\My SAS Files\classdoc
SAS must be able to write to this directory in order for GenDoc to
create HTML files.
Since you cannot have
two classes with the same name within a catalog, the GenDoc utility
creates a subdirectory for the library and catalog under the
classdoc
directory that is listed in the HELPLOC
option. The first subdirectory specifies the library. A second directory
is created under the library directory and is named for the catalog
containing the element that you want documented. For example, if you
generated documentation for
sasuser.myclasses.SalesObject.class
, GenDoc creates the directory
/sasuser/myclasses
under
classdoc
.
The following list describes
the types of information generated by GenDoc and the filenames of
the resulting HTML documents:
GenDoc File Output
|
|
|
parent or ancestor information
and all properties (attributes, methods, events, event handlers, and
supported or required interfaces) defined for the class.
|
|
parent or ancestor information
and all methods defined for the interface.
HTML
file:interfacename-intrface.htm
|
|
all class entries and
interface entries included in the resource.
HTML
files:resourcename-resource.htm , plus an HTML file for each class and interface in the resource
|
|
frame information and
general attributes, the associated resource, and instance information
for all visual and nonvisual components on the frame.
HTML
file:framename-frame.htm
|
|
all class, interface,
and frame entries stored in the catalog.
HTML
files:catalogname-index.htm , plus an HTML file for each class, interface, and frame entry stored
in the catalog
|
For example, if HELPLOC
is set to
d:\My SAS Files\classdoc
and
you generate documentation for
sasuser.myclasses.SalesObject.class
, the following HTML file is created:
d:\My SAS Files\classdoc\sasuser\myclasses\SalesObject.htm
You can edit the HTML
files to add other information, such as a complete description of
a component.
GenDoc creates an index
file that contains links to other files when you generate documentation
for a resource or catalog. However, you can create your own HTML file
to use an index if you want a more customized collection. To document
a project or application, you can also create an HTML file that contains
links to all of the necessary documents, or to the documentation for
the catalogs and/or resources that are used by the project.