由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Statistics版 - output multiple files in a do loop
相关主题
SAS求助:gplot 画图ods layout怎么不能分成两个column啊
what's wrong with Proc Reg???一个画box plot的问题
How to make image.plot in sas请问一道joint hypothesized test 的题目
一个sas问题PCA作图
这样的图怎么用sas做?跪求, proc mixed干啥一直报错??? 包子谢
请教一下sas的指数函数紧急求助,问到MULTIPLE REGRESSION的题
用包子求助,请问如何画这个简单的图,谢谢!请教一个用R画图的问题
那个proc能最方便给出每个category的odds ratioHow to selectively plot data in R
相关话题的讨论汇总
话题: files话题: pdf话题: plot话题: do话题: while
进入Statistics版参与讨论
1 (共1页)
w*******9
发帖数: 1433
1
As a guy new to sas, I feel like I have millions of questions to ask
everyday. While you could solve most of them with the help of Internet, for
some of them, you don't even have a clue how to google!
Again, baozi and sincere appreciation for helpful suggestions. Would like to
generate multiple pdf files in a do loop and save each of them separately.
--------------------
%do it=1 %to 50;
ods pdf file="plot&it.pdf";
proc gplot data=data⁢
plot y*x=z;
run;
ods pdf close;
%end;
---------------------
While doing this, I am only able to save plot50.pdf. It seems I have lost
the previous 49 files.
d******9
发帖数: 404
2
It should work, the codes look fine except:
ods pdf file="plot&it..pdf";
You need use 2 dots rather than 1 dot after the macro variable.
w*******9
发帖数: 1433
3
Right. An additional dot to end the macro reference. But this method only
gives me the last plot. The previous plots have not been outputted.

【在 d******9 的大作中提到】
: It should work, the codes look fine except:
: ods pdf file="plot&it..pdf";
: You need use 2 dots rather than 1 dot after the macro variable.

f******1
发帖数: 119
4
这个问题和我先前的那个很类似, 是不是DO的位置不对,而造成了循环到最后一步,
前面的都被OVERWRITE了。等大牛dido2009来解释。
w*******9
发帖数: 1433
5
Thanks guys I figured it out. Since I used the path "plot&it..pdf", only the
last graph prompted out and I have no idea where the rest files are written
by default. I then changed the path and I did find 50 files there.
1 (共1页)
进入Statistics版参与讨论
相关主题
How to selectively plot data in R这样的图怎么用sas做?
请问诸位高手:lattice比一般的画图plot之类请教一下sas的指数函数
R kmeans issue, plot result用包子求助,请问如何画这个简单的图,谢谢!
[R] R plot histogram question about breaks那个proc能最方便给出每个category的odds ratio
SAS求助:gplot 画图ods layout怎么不能分成两个column啊
what's wrong with Proc Reg???一个画box plot的问题
How to make image.plot in sas请问一道joint hypothesized test 的题目
一个sas问题PCA作图
相关话题的讨论汇总
话题: files话题: pdf话题: plot话题: do话题: while