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怎么弄?谢谢
|
|