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-filenamehtmlfref=filerefxmlfile=external-filenamexmlfref=filerefmakehtml=Y | Nmakexml=Y | Nopenmode=REPLACE | APPENDrunmode=B | Sxmltype=INLINE | EXTERNALxmlurl=valuelabels=Y | Nlcolor=var lcolfmt=SAS-format-name lstip=varlstipfac=varlwidth=var naction=varncolor=var ncolfmt=SAS-format-name ndata=SAS-data-set-namenfntname=varnfntsize=varnfntstyl=varnid=var nlabel=var nparent=var npw=password ntextcol=varntip=var ntipfmt=SAS-format-name nurl=var nwhere=where-expression bgtype=NONE | COLOR | IMAGEbg=valuebdclass=valuebrtitle=value center=N | Y ctext=value doctype=3.2 | valueencode=Y | Npagepart=ALL | HEAD | BODY | FOOTsaspower=urlsepclass=valueseploc=urlseptype=RULE | NONE | IMAGEspclass=valuetclass=valuetcolor=valuetface=valuetsize=n | +n | -nttag=valuefclass=valuefcolor=valuefface=valuefsize=n | +n | -nftag=valueaction=valuecatext=valuecback=valuecnode=valuecselect=valuecutoff=valuedriltarg=valuefactor=valuespread=valueahunits=PIXELS | PERCENTalign=LEFT | RIGHT | TOP | BOTTOM | TEXTTOP | MIDDLE |
ABSMIDDLE | BASELINE | BOTTOM | ABSBOTTOM
alt=valuearchive=valueawunits=PIXELS | PERCENTcodebase=valueheight=600 | valuehspace=valuename=value vspace=valuewidth=800 | value