全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
1416 3
2009-10-22
我是个初学者,再看little book 不过那里面说的两者区别我没打看懂。谁能帮忙解释一下。
二维码

扫码加我 拉你入群

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

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

全部回复
2009-10-24 14:38:55
@+数字表示绝对控制符号,就是说某个变量,在某列或某些列的数据,还有其他的,你自己看
@@表示不变行的数据输入
二维码

扫码加我 拉你入群

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

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

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;
二维码

扫码加我 拉你入群

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

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

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群