由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Statistics版 - how to create page x of y in SAS
相关主题
sas macro 问题,[合集] sas advance question
SAS help: 在 Macro 里循环调用 windows-display 的问题why this error in %if statement
[合集] 一个sas问题请教一个SAS的问题
用SAS找单词[合集] 一道SAS Advanced 题目--关于call symput
请教一个call symput的问题问个SAS题目,
求解SAS习题,谢谢SAS help
SAS ADV passed!!!一个关于SAS macro的问题
请帮忙看3道SAS题。%do questions
相关话题的讨论汇总
话题: page话题: sas话题: create话题: infile话题: flag
进入Statistics版参与讨论
1 (共1页)
b**********e
发帖数: 22
1
如题。请问在SAS里怎么样可以做出current page of total page 格式? 谢过。
y*m
发帖数: 102
2
it depends on format of output,if it's ods,it's very easy
if it's listing output, google some page of macros

【在 b**********e 的大作中提到】
: 如题。请问在SAS里怎么样可以做出current page of total page 格式? 谢过。
b**********e
发帖数: 22
3
请问用rtf怎么弄?谢谢

【在 b**********e 的大作中提到】
: 如题。请问在SAS里怎么样可以做出current page of total page 格式? 谢过。
R******d
发帖数: 1436
4
这个宏凑合看看吧
%macro pgxofy(filein=,flag=(Page x of y),append=N,outfile=,ls=132)/des='Page
x of y';
*以&flag为标识算总页数;
data _null_;
retain pg 0;
infile "&filein" end=last;
input;
if index(upcase(_infile_),"&flag") then do;
pg=pg+1;
end;
if last then call symput("totpg",put(pg,4.0));
run;

*将&flag标识替换为“page X of Y”;
data tttttttt;*(keep=text);
length text2 text $200.;
retain pg 0;
infile "&filein";
input;
if index(upcase(_infile_),"&flag") the
y*m
发帖数: 102
5
^{pageof}
^ is the escape character you define in the following statement;
ods escapechar='^';
this works for SAS9.2 and should work under 9.1.3 as well.
or you can use ^{thispage} of ^{lastpage}

【在 b**********e 的大作中提到】
: 请问用rtf怎么弄?谢谢
1 (共1页)
进入Statistics版参与讨论
相关主题
%do questions请教一个call symput的问题
请问SAS advanced macro global 和local求解SAS习题,谢谢
SAS数据处理问题:让缺失数据自动采用上个数据值SAS ADV passed!!!
SAS ADVANCED 一道题求助请帮忙看3道SAS题。
sas macro 问题,[合集] sas advance question
SAS help: 在 Macro 里循环调用 windows-display 的问题why this error in %if statement
[合集] 一个sas问题请教一个SAS的问题
用SAS找单词[合集] 一道SAS Advanced 题目--关于call symput
相关话题的讨论汇总
话题: page话题: sas话题: create话题: infile话题: flag