由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Statistics版 - two sas adv questions
相关主题
请问SAS ADV 130中74 和80题[合集] 求教一道Advanced SAS
请问一道SAS ADV中的题目sas题目恳请前辈指点!!
问个SAS题目,再来请教,在SAS中如何得到下面的结果?
后天考ADV,请教一题怎样批量将很多的sas文件转换成stata文件?
SAS adv 130题两问,快考了,urgent求教2道sas advance题目,包子答谢。
SAS format file--- when I load the file 急~~~谢谢~~~周五考Advance,问2道SAS题
再问一道SAS adv题库的题请教一道SAS advance题。(killtest 75)
求助 SAS 一个error 老改不对How to set initial dataset to zero in a SAS macro?
相关话题的讨论汇总
话题: sas话题: rc话题: totalobs话题: macro话题: libname
进入Statistics版参与讨论
1 (共1页)
t****e
发帖数: 25
1
1.
** sashelp.prdsale has more than 100 observations
%macro test;
data out;
set sashelp.prdsale nobs=totalobs;
if totalobs>10 then do;
%let rc=high; end;
else do; %let rc=low; end; run;
%mend;
%let rc=Before Execution;
%put &rc;
why is the result low?
2.
libname A 'SAS library reference';
libname F 'SAS library reference';
options fmtsearch=(A F.X);
what is the second location searched for formats?
The tutorial says
work.formats->library.formats->A.formats->F.X
why is the answer work.formats as
o****o
发帖数: 8077
2
macro resolution operates at compilation, not at execution
the plain logic won't work on macro statements unless it is macro logic
control statements

【在 t****e 的大作中提到】
: 1.
: ** sashelp.prdsale has more than 100 observations
: %macro test;
: data out;
: set sashelp.prdsale nobs=totalobs;
: if totalobs>10 then do;
: %let rc=high; end;
: else do; %let rc=low; end; run;
: %mend;
: %let rc=Before Execution;

1 (共1页)
进入Statistics版参与讨论
相关主题
How to set initial dataset to zero in a SAS macro?SAS adv 130题两问,快考了,urgent
Help Please! SAS Advanced 考证题求助SAS format file--- when I load the file 急~~~谢谢~~~
请教一个SAS Macro的问题再问一道SAS adv题库的题
【大包子】问个macro的问题求助 SAS 一个error 老改不对
请问SAS ADV 130中74 和80题[合集] 求教一道Advanced SAS
请问一道SAS ADV中的题目sas题目恳请前辈指点!!
问个SAS题目,再来请教,在SAS中如何得到下面的结果?
后天考ADV,请教一题怎样批量将很多的sas文件转换成stata文件?
相关话题的讨论汇总
话题: sas话题: rc话题: totalobs话题: macro话题: libname