楼主: usm007
1547 3

求debug! [推广有奖]

  • 0关注
  • 1粉丝

硕士生

14%

还不是VIP/贵宾

-

威望
0
论坛币
5 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
217 点
帖子
57
精华
0
在线时间
161 小时
注册时间
2012-1-8
最后登录
2024-4-23

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币

输出成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;

二维码

扫码加我 拉你入群

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

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

关键词:debug bug Procedure footnote contents contents frame layout title

沙发
godxh 在职认证  发表于 2015-4-30 13:26:42 |只看作者 |坛友微信交流群
确保你的D盘下有tmp文件夹, tmp文件夹里有df文件夹,这个是Windows的物理路径,因为你要输出的位置本来在D盘就不存在,所以会有warning

使用道具

藤椅
usm007 发表于 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.

使用道具

板凳
usm007 发表于 2015-5-4 11:48:11 |只看作者 |坛友微信交流群
ding       !

使用道具

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-4-28 01:36