由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Statistics版 - sas advance problem
相关主题
求教2道sas advance题目,包子答谢。one little SAS question
请教一道SAS题请教SAS adv 题库一道macro题
sas 代码问题SAS ADV passed!!!
请问SAS ADV 130中74 和80题[合集] 一个sas问题
why this error in %if statement靠,这个哪错了?
菜鸟请教关于赋给macro variables变量值问个sas编程的题
问个SAS题目,大家能否帮忙给我看看这道SAS题。谢谢
一个不理解的SAS program新人报道,兼问SAS data set的问题
相关话题的讨论汇总
话题: sales话题: 5678话题: mfirst话题: 3654话题: division
进入Statistics版参与讨论
1 (共1页)
f*****a
发帖数: 693
1
Given data one,
Division sales
A 1234
A 3654
B 5678
The following SAS program is submitted:
data _null_;
set one;
by division;
if first.division then
call symput('mfirst',sales);
if last.division then
call symput('mlast',sales);
run;
which one of the following is the value of the macro variable mfirst when
the above program finish execution?
A. null B. 1234 C. 3654 D. 5678
Answer: D
Why not B. thanks.
p********a
发帖数: 5352
2
first.division=1 for record division=B and Sales=5678
The macro value was replaced
1 (共1页)
进入Statistics版参与讨论
相关主题
新人报道,兼问SAS data set的问题why this error in %if statement
在SAS里面如何进行数组操作?菜鸟请教关于赋给macro variables变量值
问几题sas adv, 多谢了!问个SAS题目,
Need urgent helps: How to use DDE to import password-protected excel file into SAS?一个不理解的SAS program
求教2道sas advance题目,包子答谢。one little SAS question
请教一道SAS题请教SAS adv 题库一道macro题
sas 代码问题SAS ADV passed!!!
请问SAS ADV 130中74 和80题[合集] 一个sas问题
相关话题的讨论汇总
话题: sales话题: 5678话题: mfirst话题: 3654话题: division