楼主: liushui
1814 2

SAS advanece50题 第26题答疑 [推广有奖]

  • 1关注
  • 3粉丝

已卖:818份资源

博士生

14%

还不是VIP/贵宾

-

威望
0
论坛币
3988 个
通用积分
138.7556
学术水平
1 点
热心指数
5 点
信用等级
2 点
经验
4480 点
帖子
157
精华
0
在线时间
291 小时
注册时间
2005-9-19
最后登录
2025-5-27

楼主
liushui 在职认证  发表于 2017-4-12 10:03:25 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
26. The following SAS program is submitted:
%let mvar=bye;
data _null_;
var1='hi';
var2='hello';
call symput('var1' || "&mvar", var2);
run;
Which one of the following is the name of the macro variable created by the CALL SYMPUT
statement?
Correct answer: c
a. var1
b. hibye
c. var1bye
d. No macro variable is created because the CALL SYMPUT
statement is not valid.
Your answer:
The CALL SYMPUT statement in this example uses the concatenation operator to join the text
string var1 with the resolved value of the macro variable reference &mvar, which is bye.
Therefore, the name of the new macro variable is var1bye.
此题选C不选B的原因在于,"var1"是用引号quote了的,带了引号的话SAS就认为其是个字符串而不是变量,因此不会resovlve 为 hi .
var1带引号就是字符串,一个具体的值,不带则是一个变量,一个变量name.


个人所吾!
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:advan Vane NEC Van statement following because created example hello

沙发
liushui 在职认证  发表于 2017-4-12 10:15:56
补充知识点1: SQL中,insert into 和 undate是针对rows的,前者添加新的rows, 后者修改已有的rows;
                                alter是针对colomn的,可以修改,增加,删除colomn, modify为其选择项

藤椅
liushui 在职认证  发表于 2017-4-12 10:44:07
补充知识点2;MLOGIC option trace macro execution activity including the beginning of macro execution and the evaluation of % IF ;
                  MPRINT option specifies that text that is sent to the compiler as a result of macro execution is printed in SAS log.

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
jg-xs1
拉您进交流群
GMT+8, 2026-1-3 13:46