由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Statistics版 - 问一些sas的问题
相关主题
SAS ADVANCED 一道题求助请问SAS advanced macro global 和local
一个关于macro的问题,多谢。如何在用SAS给多个data step 和proc step 做循环语句呢?
SAS Macro 问题请教 。。。求助,SAS ADV 130 中94
How to the macro regression with if?求助:一个SAS小程序
一道ADV 130 题目请教一个SAS Macro问题。谢谢
proc iml help!SAS Regression Macro 问题请教 (有包子)
一个常见的问题SAS call symput question
请帮忙看3道SAS题。ask for help (urgent): A SAS question
相关话题的讨论汇总
话题: sas话题: dsname话题: libref话题: data话题: macro
进入Statistics版参与讨论
1 (共1页)
a*****i
发帖数: 1045
1
1. Which of the following will cause PROC SQL to list rows that have no data
in the Address column?
a. WHERE address is missing
b. WHERE address not exists
c. WHERE address is null
d. both a and c
2. What is a SAS library?
a. a collection of SAS files, such as SAS data sets and catalogs
b. in some operating environments, a physical collection of SAS files
c. in some operating environments, a logically related collection of SAS
files
d. all of the above
3. What is the length of the variable Type, as created in the DATA step
below?
data finance.newloan;
set finance.records;
TotLoan+payment;
if code='1' then Type='Fixed';
else Type='Variable';
length type $ 10;
run;
a. 5
b. 8
c. 10
d. it depends on the first value of Type
4. Suppose your program creates a macro variable named libref that contains
the value sales. Another macro variable, named dsname, contains the value
q3y2001. How would you use these macro variables to reference the data set
Sales.Q3y2001?
a. data %libref.%dsname;
b. data &libref..&dsname;
c. data %libref".%dsname";
d. data "&libref."&dsname;
5. Which of the following is false?
a. A %MACRO statement must always be paired with a %MEND statement.
b. A macro definition can include macro variable references, but it
cannot include SAS language statements.
c. Only macro language statements are checked for syntax errors when the
macro is compiled.
d. Compiled macros are stored in a temporary SAS catalog by default.
都是选择题,多谢啦。
Z********6
发帖数: 10
2
You may try testing code or google to find out.
1. Which of the following will cause PROC SQL to list rows that have no data
in the Address column?
a. WHERE address is missing
b. WHERE address not exists
c. WHERE address is null
d. both a and c
Answer: d
3. What is the length of the variable Type, as created in the DATA step
below?
data finance.newloan;
set finance.records;
TotLoan+payment;
if code='1' then Type='Fixed';
else Type='Variable';
length type $ 10;
run;
a. 5
b. 8
c. 10
d. it depends on the first value of Type
Answer is d.
4. Suppose your program creates a macro variable named libref that contains
the value sales. Another macro variable, named dsname, contains the value
q3y2001. How would you use these macro variables to reference the data set
Sales.Q3y2001?
a. data %libref.%dsname;
b. data &libref..&dsname;
c. data %libref".%dsname";
d. data "&libref."&dsname;
Answer is b.
1 (共1页)
进入Statistics版参与讨论
相关主题
ask for help (urgent): A SAS question一道ADV 130 题目
请教一道SAS maro的题proc iml help!
请教SAS adv 题库一道macro题一个常见的问题
求教sas adv题目请帮忙看3道SAS题。
SAS ADVANCED 一道题求助请问SAS advanced macro global 和local
一个关于macro的问题,多谢。如何在用SAS给多个data step 和proc step 做循环语句呢?
SAS Macro 问题请教 。。。求助,SAS ADV 130 中94
How to the macro regression with if?求助:一个SAS小程序
相关话题的讨论汇总
话题: sas话题: dsname话题: libref话题: data话题: macro