全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
3544 6
2009-06-01

这是SAS/log中的显示没有错误,但不能显示

1    /* 1. Define the name and storage location of the HTML output file */
2    /*    and the location of the jar files.                            */
3    %let htmlfile = your_path_and_filename.htm;
4    %let jarfiles = http://your_path_to_archive;
5
6    /* 2. Define a data set that contains parent-child relationships. */
7    data myorg;
8    input name $ empno mgrno deptname $22. deptcode $;
9    cards;

NOTE: The data set WORK.MYORG has 11 observations and 5 variables.
NOTE: DATA statement used (Total process time):
      real time           0.01 seconds
      cpu time            0.01 seconds


21   ;
22   run;
23
24   /* 3. Specify titles and footnotes: (optional). */
25   title1 'Organizational Chart';
26   footnote1 'To display the department name, place the cursor over a node.';
27   footnote2 'To rotate the chart, click and drag a node.';
28
29   /* 4. Run the DS2TREE macro. */
30   /* You must change the CODEBASE= argument (using either http://      */
31   /* or a directory path such as C:/) to specify the location of your  */
32   /* sas.graph.treeview.jar file and its associated jar files          */
33   /* (sas.graph.nld.jar, sas.graph.j2d.jar). See the CODEBASE= argument in:   */
34   /* Arguments for the APPLET Tag*/
35   /* Make sure that the ods listing destination is open. */
36   ods listing;
37   %ds2tree(ndata=myorg,         /* data sets and files */
38            codebase=&jarfiles,
39            xmltype=inline,
40            htmlfile=&htmlfile,
41            nid=empno,           /* roles of variables */
42            nparent=mgrno,
43            ntip=deptname,
44            nlabel=name,
45            height=500,          /* appearance */
46            width=600,
47            tcolor=navy,
48            fcolor=black);
NOTE: XML file successfully generated.
NOTE: HTML file successfully generated.

谢谢大家

[此贴子已经被作者于2009-6-1 11:42:53编辑过]

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2009-6-1 11:42:00
因为你没看到错误
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2009-6-2 11:35:00
Make sure that the ods listing destination is open.
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2009-6-2 11:55:00
yes, I am sure that the listing is opening 
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2009-6-2 11:56:00
以下是引用realgod5417在2009-6-1 11:42:00的发言:
因为你没看到错误

请你把看到的错误指出来,我谢谢您了

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2009-6-2 12:59:00

你把你的%macro ds2tree(......)这个宏过程贴出来看看,

或者你核查一下你的macro的变量与你现在定义的%ds2tree下面的变量之间有什么疏漏的地方嘛?

如果没有定义变量上面的疏漏,很可能是你%macro 本身的问题!

递交程序的时候一段一段递交;追踪数据走到哪里停住了

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

点击查看更多内容…
相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群