楼主: kuhasu
19458 100

[问答] SAS水平测试,动脑子一起看看吧,高手入   [推广有奖]

61
zhanquanlv 发表于 2013-2-23 00:02:24
支持

62
yaomingliu 发表于 2013-2-23 01:50:21
高, 实在是高

63
wangluanwang 发表于 2013-2-23 19:03:12
默默关注,静等结果

64
zzw99999 发表于 2013-2-23 21:34:13
学习下,膜拜各路大神!

65
farmman60 发表于 2013-2-24 00:56:34
Hi, I also have posted the program on SAS-L, and found the same discussion is going on here, so I posted here again.

data _null_;
a='5+sum(2.1,5.312)' ;
infile cards dlm='+ ,';
input @@;
_infile_=a;
input @1 x @'(' y  z 5. ;
b=put(x+sum(y,z),10.3);
put b;
stop;
cards;
try
;
run;

  

66
Imasasor 发表于 2013-2-24 10:26:59
farmman60 发表于 2013-2-24 00:56
Hi, I also have posted the program on SAS-L, and found the same discussion is going on here, so I po ...
我有比你更简单的方法
data _null_;
a="5+sum(2.1,5.312)";
b=5+sum(2.1,5.312);
put b;
run;
欢迎加入亚太地区第一R&Python数据挖掘群: 251548215;

67
farmman60 发表于 2013-2-24 10:59:55
Sorry, How about this?


data test;
a='5+sum(2.1,5.312)' ;
infile cards dlm='+ ,';
input @@;
_infile_=a;
input @1 x$ @'(' y$  z $5. ;
b=put(x+sum(y,z),10.3);
put b;
stop;
cards;
try
;
run;

68
farmman60 发表于 2013-2-24 11:05:44
Ok, I find I am wrong on all. Forget above two posts

69
20122302 发表于 2013-2-24 21:11:17
感觉好高深呀,,还没有学过sas

70
zc1987914 发表于 2013-2-25 11:19:28
看一下吧

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

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