g*********e 发帖数: 458 | 1 我有一段小得不能再小的简单code,说什么也不对。生成的PDF文件不能打开,
系统报错说: Because it is either not a supported file type or the file has
been damaged.
程序就这么简单就不对:
data _null_;
file "C:\a.pdf";
put 'Hello World!';
run; |
t*********l 发帖数: 778 | 2 我也没试出来..我用的这个
ods pdf file='';
ods listing close;
data _null_;
put'hello';
run;
ods pdf close;
ods listing;
感觉不应该用 put 和data _null_ |
w*******n 发帖数: 469 | 3 ods pdf file="C:\a.pdf";
data _null_;
file print;
put 'Hello World!';
run;
ods pdf close; |
t*********l 发帖数: 778 | |
g*********e 发帖数: 458 | 5 Thank you very much!
This is great.
【在 w*******n 的大作中提到】 : ods pdf file="C:\a.pdf"; : data _null_; : file print; : put 'Hello World!'; : run; : ods pdf close;
|
g*********e 发帖数: 458 | 6 wwwscopin(and all IDs interested):
Thank you very much for your help!
But still I have some questions related.
I put the code into macro then it doesn't work again. The error report doesn
't give much info.
if you are free, please give a hand. Thank you.
%macro test;
ods pdf;
data _null_ file="C:\a.pdf";
file print;
%put 'Testing';
run;
ods pdf close;
%mend test;
%test;
【在 w*******n 的大作中提到】 : ods pdf file="C:\a.pdf"; : data _null_; : file print; : put 'Hello World!'; : run; : ods pdf close;
|