全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
1737 3
2015-04-30

输出成pdf没事,输出为html总抱错:
Physical file does not exist



options nodate nonumber;
ods html path="D:\tmp\df\"(url=none) body="df.html"  gpath = "D:\tmp\df\graphs"(url="graphs/")   frame="frame.html" contents="contents.html"  ;
title 'This is TITLE1';
footnote 'This is FOOTNOTE1';
ods layout gridded;
ods region;
title 'This is the REGION TITLE';
footnote 'This is the REGION FOOTNOTE';
proc print data=sashelp.class(obs=10);
run;
goptions hsize=4in vsize=4in;
proc gchart data=sashelp.class;
   vbar age / name='gtitle';
   title 'This is the PROCEDURE TITLE';
   footnote 'This is the PROCEDURE FOOTNOTE';
run;
quit;
ods layout end;
ods html close;

二维码

扫码加我 拉你入群

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

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

全部回复
2015-4-30 13:26:42
确保你的D盘下有tmp文件夹, tmp文件夹里有df文件夹,这个是Windows的物理路径,因为你要输出的位置本来在D盘就不存在,所以会有warning
二维码

扫码加我 拉你入群

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

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

2015-4-30 14:43:20
df路径是有的,log如下:
虽然抱错,但程序运行结果是成功的,把代码中的(url="graphs/")去掉就不会抱错了,但是这样的话图片的路径就写死了。。。

NOTE: Graph's name, GTITLE, changed to GTITLE13. GTITLE is
      already used or not a valid SAS name.
NOTE: This SAS session is using a registry in WORK.  All
      changes will be lost at the end of this session.
NOTE: 2 records written to D:\tmp\df\graphs\gtitle13.png.
ERROR: Physical file does not exist,
       C:\Users\hi\graphs\gtitle13.png.
二维码

扫码加我 拉你入群

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

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

2015-5-4 11:48:11
ding       !
二维码

扫码加我 拉你入群

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

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

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

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