Linux 6 添加网卡方法
2014-07-26 00:49
281 查看
data a;
i=1;
sum=0;
do i=1 to 999 by 1;
if mod(i,2)=1 then sum+i;
end;
put sum;
run;
data _null_;
x=1;
do i=1 to 200 by 1;
bj=0;
do j=1 to i/2 by 1;
if mod(i,j+1)=0 then bj=1;
end;
if bj=0 then put i;
bj=0;
end;
run;
data bclass;
/*INFILE "d:\2.txt" DELIMITER=' ' ;*/
input Name$ sex$ height weight;
cards;
李强 男 187 85
李欣 女 156 50
张浩强 男 168 59
牛皓 男 179 77
朱珠 女 163 56
胡亮 男 166 68
杨家富 男 177 74
;
run;
data classf classm;
set bclass;
select(sex);
WHen('男') output classf;
when('女') output classm;
otherwise put sex= '有错';
end;
run;
data a;
set bclass;
keep name height weight;
run;
data c;
set bclass;
ratio=(weight/height);
run;
data d;
sumf=0;
summ=0;
set bclass;
if sex='男' then sumf+height;
if sex='女' then summ+height;
run;
data tong;
input x @@ ;
cards;
20 13 20 16 23 19 19 16
;
run;
proc sort data=tong;
by x ;
run;
data qq;
input x @@;
if 1<=x<=5 then goto ok;
put x; count+1;
return;
ok: sumx+x;
cards;
1 2 7 2 12 24 22
;
run;
本文出自 “小赫子的博客” 博客,谢绝转载!
i=1;
sum=0;
do i=1 to 999 by 1;
if mod(i,2)=1 then sum+i;
end;
put sum;
run;
data _null_;
x=1;
do i=1 to 200 by 1;
bj=0;
do j=1 to i/2 by 1;
if mod(i,j+1)=0 then bj=1;
end;
if bj=0 then put i;
bj=0;
end;
run;
data bclass;
/*INFILE "d:\2.txt" DELIMITER=' ' ;*/
input Name$ sex$ height weight;
cards;
李强 男 187 85
李欣 女 156 50
张浩强 男 168 59
牛皓 男 179 77
朱珠 女 163 56
胡亮 男 166 68
杨家富 男 177 74
;
run;
data classf classm;
set bclass;
select(sex);
WHen('男') output classf;
when('女') output classm;
otherwise put sex= '有错';
end;
run;
data a;
set bclass;
keep name height weight;
run;
data c;
set bclass;
ratio=(weight/height);
run;
data d;
sumf=0;
summ=0;
set bclass;
if sex='男' then sumf+height;
if sex='女' then summ+height;
run;
data tong;
input x @@ ;
cards;
20 13 20 16 23 19 19 16
;
run;
proc sort data=tong;
by x ;
run;
data qq;
input x @@;
if 1<=x<=5 then goto ok;
put x; count+1;
return;
ok: sumx+x;
cards;
1 2 7 2 12 24 22
;
run;
本文出自 “小赫子的博客” 博客,谢绝转载!
相关文章推荐
- linux系统启动自动激活网卡的解决方法
- linux创建文件名添加当前系统日期时间的方法
- Linux 添加新硬盘方法
- linux系统单网卡绑定双IP的方法
- 在linux下配置一个网卡多个IP的方法
- linux 添加网卡
- Debian下一个网卡绑定多个ip的方法及 添加路由
- 手动安装linux网卡驱动方法
- linux系统单网卡绑定双IP的方法
- cacti无法监控linux32位系统网卡流量(超过10M)的处理方法
- Linux配置网卡方法
- Ubuntu Linux系统三种方法添加本地软件库[转]
- DWL-G122,usb无限网卡在linux下面的安装方法[转]
- Linux操作系统添加新硬盘方法
- Linux 各种查看网卡流量的方法
- Linux下Broadcom 43xx系列无线网卡适配方法
- Debian下一个网卡绑定多个ip的方法 &amp;amp;amp; 添加路由
- LINUX系统一个网卡绑定多个IP的方法
- Hacking initrd.img - 添加网卡驱动,网络安装 Linux
- linux添加网卡及驱动