楼主: gongshuxin2009
1468 3

[原创博文] 在输入数据时@和@@的区别到底是什么 [推广有奖]

  • 0关注
  • 0粉丝

已卖:8份资源

本科生

55%

还不是VIP/贵宾

-

威望
0
论坛币
362 个
通用积分
0
学术水平
0 点
热心指数
1 点
信用等级
0 点
经验
1765 点
帖子
28
精华
0
在线时间
144 小时
注册时间
2009-7-14
最后登录
2025-4-28

楼主
gongshuxin2009 在职认证  发表于 2009-10-22 19:56:58 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
我是个初学者,再看little book 不过那里面说的两者区别我没打看懂。谁能帮忙解释一下。
二维码

扫码加我 拉你入群

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

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

关键词:little Book ITT 初学者 little 初学者

回帖推荐

bobguy 发表于3楼  查看完整内容

I think you are talking the @/@@ at the end of input statement. In short, input x y z @; *** sas will hold this line input x y z @@; *** sas will go to next line to get data if there is no data elements left in current line. Here is a simple example. But you need read SAS manual to understand them better. I think 3/4 of sas programmer do not fully understand them. d ...

本帖被以下文库推荐

沙发
爱萌 发表于 2009-10-24 14:38:55
@+数字表示绝对控制符号,就是说某个变量,在某列或某些列的数据,还有其他的,你自己看
@@表示不变行的数据输入
最恨对我说谎或欺骗我的人

藤椅
bobguy 发表于 2009-10-25 03:32:06
I think you are talking the @/@@ at the end of input statement.
In short,
    input x y z @;           *** sas will hold this line
    input x y z @@;      *** sas will go to next line to get data if there is no data elements left in current line.

Here is a simple example. But you need read SAS manual to understand them better. I think 3/4 of sas programmer do not fully understand them.

data t1;
  input x y z @;
  output;
  input x y z @;
  output;
  cards;
1 2 3 1 2 3
4 5 6 4 5 6
;

proc print; run;

data t1;
  input x y z;
  output;
  input x y z;
  output;
  cards;
1 2 3 1 2 3
4 5 6 4 5 6
;

proc print; run;

data t1;
  input x  @@;
  output;
  cards;
1 2 3 1 2 3
4 5 6 4 5 6
;
proc print; run;

data t1;
  input x ;
  output;
  cards;
1 2 3 1 2 3
4 5 6 4 5 6
;
proc print; run;
已有 1 人评分经验 论坛币 收起 理由
bakoll + 3 + 3 精彩帖子

总评分: 经验 + 3  论坛币 + 3   查看全部评分

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

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2025-12-31 23:39