楼主: guo.bailing
1288 0

每天一例SAS题(7) [推广有奖]

区版主

已卖:275份资源

大师

30%

还不是VIP/贵宾

-

TA的文库  其他...

文库1

文库2

文库3

威望
6
论坛币
1336379 个
通用积分
20289.1888
学术水平
558 点
热心指数
776 点
信用等级
515 点
经验
147031 点
帖子
4111
精华
24
在线时间
10956 小时
注册时间
2009-7-9
最后登录
2025-11-21

初级热心勋章 中级热心勋章 初级信用勋章 初级学术勋章

楼主
guo.bailing 发表于 2010-11-16 20:50:12 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
/*the variables name in sas don't distinguish between capital letter and lower case . but for character variables , the value should distinguish it . */
data temp;
city='beijing';
city1='Beijing';
run;

data temp2;
input a b;
datalines;
1 2
2 .
3 2
2 .
;    /*in sas , use dot when the value is default. */
run;
data temp3;
length a$ 6; /*use length specify the variable's length.*/
input a$;
datalines;
123564
231066
654123
;
run;

data temp4;
a='I';
b='Love';
c='You';
d=a||b||c; /*the operator || means combine several variables.*/
run;   
data temp5;
a=6;
b=3;
c=a<>b; /*the operater of <> means get the grater value , and the operator >< means get smaller latter.*/
d=a><b;
run;

博客原文地址:http://hi.baidu.com/_guobailing/blog/item/cde74327fcaa8fe3d6cae214.html
二维码

扫码加我 拉你入群

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

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

关键词:distinguish Variables Character Variable operator SAS

自助者,天助之!

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

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