楼主: davincitom
1237 5

一个SAS base的问题 [推广有奖]

  • 0关注
  • 2粉丝

大专生

75%

还不是VIP/贵宾

-

威望
0
论坛币
-8 个
通用积分
0.2498
学术水平
0 点
热心指数
5 点
信用等级
0 点
经验
531 点
帖子
57
精华
0
在线时间
49 小时
注册时间
2009-3-1
最后登录
2022-5-3

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
一个data file "size“
含有数值:72 95
data a;
infile "size" ;
input@ 1 height 2. @4 weight 2;
run;
viewtable 里是
height   weight
72           2

weight 为什么是2 ?

谢谢了
二维码

扫码加我 拉你入群

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

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

关键词:SAS base Base viewtable Weight infile file

沙发
sausau 发表于 2012-1-31 02:25:20 |只看作者 |坛友微信交流群
因为你 input@ 1 height 2. @4 weight 2; 写错了
2后面忘记写. 了

使用道具

藤椅
maidenhan 发表于 2012-1-31 09:26:16 |只看作者 |坛友微信交流群
Let's focus on the code, "input @1 height 2. @4 weight 2;", in which the number 2 after 'weight' means thet SAS would read and put the second character into 'weight' only.

And furthermore, if we write in this way, "input @1 height 2. @4 weight 1;", the value of 'weight' in dataset 'a' would be 7.

使用道具

板凳
layyine 发表于 2012-1-31 18:21:49 |只看作者 |坛友微信交流群
maidenhan 发表于 2012-1-31 09:26
Let's focus on the code, "input @1 height 2. @4 weight 2;", in which the number 2 after 'weight' mea ...
我还以为是2给weight赋值了,受教了。

使用道具

报纸
davincitom 发表于 2012-1-31 22:21:09 |只看作者 |坛友微信交流群
是啊,太粗心了,谢谢各位的帮助了

使用道具

地板
sunset1986 发表于 2012-4-12 19:25:32 |只看作者 |坛友微信交流群
恩,2指得是指针的位置
An honest tale speeds best being plainly told.
Cheers!

使用道具

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

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

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

GMT+8, 2024-6-7 10:21