The Treeview HTML Generator (DS2TREE macro) generates a hierarchical tree from a SAS data set. A hierarchical tree is a graphic that visually represents parent-child relationships in the data. To render (view) the generated tree, you must also have Treeview Applet.
The input data set must contain variables that can be used to define parent-child relationships. At a minimum, the data set must contain a variable that indicates the parent nodes and a variable that represents the child nodes. An example of such a data set would be an employee database, where a manager's ID code could be used to represent parent nodes, and the employee ID code could be used to represent child nodes.
See the TreeView HTML Generator examples for examples of how to use the DS2TREE macro.
Note: The documentation on this Web site is for Release 8.2 or earlier of SAS. For Version 9 documentation, see Creating Interactive Treeview Diagrams in SAS/GRAPH Reference.
%DS2TREE(argument=value, argument=value,...)
The following lists of arguments can be used in your DS2TREE macro invocation. If values are listed for an argument, then the first value that is listed is the default value.
htmlfile=external-filename
htmlfref=fileref
xmlfile=external-filename
xmlfref=fileref
makehtml=Y | N
makexml=Y | N
openmode=REPLACE | APPEND
runmode=B | S
xmltype=INLINE | EXTERNAL
xmlurl=value
labels=Y | N
lcolor=var
lcolfmt=SAS-format-name
lstip=var
lstipfac=var
lwidth=var
naction=var
ncolor=var
ncolfmt=SAS-format-name
ndata=SAS-data-set-name
nfntname=var
nfntsize=var
nfntstyl=var
nid=var
nlabel=var
nparent=var
npw=password
ntextcol=var
ntip=var
ntipfmt=SAS-format-name
nurl=var
nwhere=where-expression
bgtype=NONE | COLOR | IMAGE
bg=value
bdclass=value
brtitle=value
center=N | Y
ctext=value
doctype=3.2 | value
encode=Y | N
pagepart=ALL | HEAD | BODY | FOOT
saspower=url
sepclass=value
seploc=url
septype=RULE | NONE | IMAGE
spclass=value
tclass=value
tcolor=value
tface=value
tsize=n | +n | -n
ttag=value
fclass=value
fcolor=value
fface=value
fsize=n | +n | -n
ftag=value
action=value
catext=value
cback=value
cnode=value
cselect=value
cutoff=value
driltarg=value
factor=value
spread=value
ahunits=PIXELS | PERCENT
align=LEFT | RIGHT | TOP | BOTTOM | TEXTTOP | MIDDLE |
ABSMIDDLE | BASELINE | BOTTOM | ABSBOTTOM
alt=value
archive=value
awunits=PIXELS | PERCENT
codebase=value
height=600 | value
hspace=value
name=value
vspace=value
width=800 | value