楼主: lb201037066
1205 1

sas求助题 [推广有奖]

  • 0关注
  • 0粉丝

高中生

0%

还不是VIP/贵宾

-

威望
0
论坛币
20 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
162 点
帖子
12
精华
0
在线时间
9 小时
注册时间
2016-3-7
最后登录
2016-11-8

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
data a;
do group=1 to 3;
input n@;
do i=1 to n;
input x@@;
output;
end;
end;
cards;
58 61 62 61 63 77
54 57 58
42 56 57 5
;
run;
谁能告诉我一下 上面的input n@是什么意思啊?
二维码

扫码加我 拉你入群

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

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

关键词:SAS求助 output Input cards outpu

沙发
emeishange 发表于 2016-3-25 00:44:53 |只看作者 |坛友微信交流群
这里讲的是single trailing 和double trailing。
建议看一下 –《SAS Certification Prep Guide: Base Programming for SAS 9》的第20章- 也就是SAS官网上指定的SAS BASE的备考书-论坛里应该也可以找得到。
Chapter 20 Creating Multiple Observations from a Single Record (p.573-606)
•        SAS provides two line-hold specifiers.
o        The trailing at sign (@) holds the input record for the execution of the next INPUT statement.
o        The double trailing at sign (@@) holds the input record for the execution of the next INPUT statement, even across iterations of the DATA step.
•        The double trailing at sign (@@)
o         works like the trailing @ except it also holds the data line in the input buffer across multiple executions of the DATA step
o        typically is used to read multiple SAS observations from a single data line
o        should not be used with the @ pointer control, with column input, nor with the MISSOVER option.
•        It's easy to distinguish between the trailing @@ and the trailing @ by remembering that
o        the double trailing at sign (@@) holds a record across multiple iterations of the DATA step until the end of the record is reached.

使用道具

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

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

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

GMT+8, 2024-5-1 12:38