全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
1260 0
2010-11-16
/*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
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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