请选择 进入手机版 | 继续访问电脑版
楼主: yrwp
1729 3

base 过了 [推广有奖]

  • 0关注
  • 0粉丝

大专生

53%

还不是VIP/贵宾

-

威望
0
论坛币
692 个
通用积分
0.1000
学术水平
0 点
热心指数
1 点
信用等级
0 点
经验
990 点
帖子
77
精华
0
在线时间
22 小时
注册时间
2007-1-17
最后登录
2023-11-15

yrwp 发表于 2007-7-21 04:53:00 |显示全部楼层 |坛友微信交流群

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
tabulate, sql. macro, plot 不考.


非常感谢tacoon,
(https://bbs.pinggu.org/thread-153203-1-1.html)
资料非常非常有用.

我在网上收集的题如下 (attachement 死活不working, 气死了, 只好这样发, 格式有点乱) 答案是我自己做的, 不一定对. 谢谢提供这些信息的朋友.

data work.test;
first='ipswich, England';
city=substr(first,1,7);
city_country=substr(first,1,7)!!', '!!'England';
run;

Q: which one of the following is the length of the variable city_country in the output data set?
A: 25.

Bank:

firstcapital 0.0718
directbank 0.0721
virtualdirect 0.0728

data newbank;
do year=1 to 3;
set banks;
capital+5000;
end;
run;

Answer: 1 observation 4 variable in data set newbank

Liu

Isbella
ireland
Lanei

where name like (_i%)

Answer: Liu


Dataset aaa has the following records

a b c

1 1 1

1 2 2

2 3 3

1 4 4

2 5 5


data temp.one one temp.two;

set aaa;

if a = 1 then output temp.one;

if a = 2 then output temp.two;

run;


Q: How many obs are in the datasets temp.one, one, temp.two respectively?

Answer: temp.one: 3 one: 0 temp.two: 2



data temp;

a = 'BAA';

a = tranwrd(a, 'AA', 'BBBBB')

run;


Q: What is the length and value of a?

A: 3, BBB

data temp;

a = 'BAA';

b = tranwrd(a, 'AA', 'BBBBB')

run;


Q: What is the length and value of b?

A: 200, BBBBBB


found = find('Ivy is a girl.', 'i')
Q: What is the value of found?

A: 5

And some questions about 'like', 'cat', 'catx', 'left', 'proc sort', the 'varnum' option
in 'proc contents', the 'tables' statement in 'proc freq', the 'crosslist' option in 'tables'.

do year=1 to 5;

do month=1 to 12;

x+month;

output;

end;

end;

Q: how many observation?

A: 60


do year=1 to 5;

do month=1 to 12;

x+month;

end;

end;

Q: how many observation?

A: 1

catx function

length of a variable when with substr(), trim(), scan() , tranwrd()

SET A (IN=a_in) B (IN=b_in); IF a_in and b_in;

Q: how many observations?

A: 0

Data _null_; SET a; PUT name $15.; RUN;

Q: where is the output?

A: Log

mdy(1,3,1960)=2 or 3? 2

difference between ORDER and GROUP in Proc Report

Suppse data set AA has 3 observations and 2 variables.

DATA BB;

DO i=1 to 3;

SET AA; /* Yes, SET is within the loop */

var3=var1+var2; /* var1 and var2 are the two variables in AA */

END;

RUN;

Q: how many observations and how many variable in BB?

A: 1 obs and 3 varaiables

Drop = And drop statement

array aaa{6} _temporary_; creates temporary arrays
 


[此贴子已经被作者于2007-7-24 8:02:59编辑过]

二维码

扫码加我 拉你入群

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

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

关键词:Base observations respectively observation proc report Base

newde 发表于 2007-7-21 16:19:00 |显示全部楼层 |坛友微信交流群
这样好的高中生,应该免试进入大学

使用道具

nerni 发表于 2007-7-24 00:28:00 |显示全部楼层 |坛友微信交流群
ding xi ge

使用道具

zhoujgua 发表于 2007-9-11 15:41:00 |显示全部楼层 |坛友微信交流群
Thanks a lot.

使用道具

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

本版微信群
加好友,备注cda
拉您进交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-4-18 22:20