DATA Step, Macro, Functions and more

Ds2Tree Macro Codebase value

Reply
Occasional Contributor
Posts: 19

Ds2Tree Macro Codebase value

All,

I am reading through the documentation on the DS2Tree Macro and wondering what value I put in for the codebase.

The sample is located here SAS/GRAPH(R) 9.3: Reference, Third Edition

It says

  • The parameter HTMLFILE= specifies the complete path and name of the HTML file to be created by the DS2TREE macro. If you want to run this sample, then change the values of HTMLFILE and CODEBASE to the locations that you want to use.

    But what is the codebase they are referring to. As it stands I get this error message

    ERROR: Insufficient authorization to access /sas/SAS_9.3_Config/Lev1/SASApp/sashtml4.htm.

    ERROR: No body file. HTML output will not be created.

    My code is:

    data father_and_sons;

    input id $8. name $15. father $8.;

    cards;

    aaron   Aaron Parker       

    bob     Bob Parker     aaron

    charlie Charlie Parker aaron

    david   David Parker   aaron

    edward  Edward Parker  david

    ;

    run; 

    /* close ODS HTML and open ODS LISTING */

    ods html close;

    ods listing;

    /* run the macro */

    %ds2tree(ndata=father_and_sons,  /* data set */

             /* specify complete url if jar files are not in same directory as

                   html file */

             codebase=/sas/java/java6_64/jre/lib,

             xmltype=inline,

             htmlfile=/home/r624403/your_path_and_filename.htm,

             nid=id,        /* use this variable as the id */

             cutoff=1,      /* display the name on every node */

             nparent=father,/* this identifies the parent of each node */

             nlabel=name,   /* display this on each node */

             height=400,         

             width=400,

             tcolor=navy, 

             fcolor=black);

    /* close ODS LISTING and open ODS HTML */

    ods listing close;

    ods html;

    Thank you,

    Sumner

Ask a Question
Discussion stats
  • 0 replies
  • 172 views
  • 0 likes
  • 1 in conversation