楼主: aijinrong
24253 74

don't be a SAS dinosaur:Modernize Your SAS Programs [推广有奖]

  • 0关注
  • 3粉丝

已卖:2193份资源

硕士生

34%

还不是VIP/贵宾

-

威望
0
论坛币
19742 个
通用积分
27.9256
学术水平
1 点
热心指数
1 点
信用等级
0 点
经验
3149 点
帖子
114
精华
0
在线时间
145 小时
注册时间
2007-2-18
最后登录
2015-7-20

楼主
aijinrong 发表于 2010-6-18 04:43:18 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
作者将常见的sas 处理分为不同的task,分别用两种不同的方法program,并比较,给出最佳及最有效的解决方法。

此书适合初学者或中级sas programmer.

全书共409页,共10个segment,每个segment平均有十个task.

For Example:
Task 3.7
Multiple Input Data Sets: Identifying the Source Data Set
Scenario:
You need to combine a group of data sets whose names are similar.
The combined data set must contain a variable that indicates which input data set contributed that
observation.

The old way:
Conditional Logic using IN= Variables
The identification of the input data set is performed by checking the IN= variables
defined for each input data set in the SET statement.
data combined;
set sashelp.prdsale(in=in_prdsale)
sashelp.prdsal2(in=in_prdsal2)
sashelp.prdsal3(in=in_prdsal3);
length Source $ 32;
if in_prdsale then source="PRDSALE";
else if in_prdsal2 then source="PRDSAL2";
else if in_prdsal3 then source="PRDSAL3";
run;
proc freq data=combined;
tables Source;
title1 "Source Data Sets for Combined Data";
run;



The new way: INDSNAME= Option in the SET Statement
(available in SAS 9.2)
An alternate approach is to use the INDSNAME= option in the SET statement, available starting in SAS
9.2.
The variable defined by the INDSNAME= option contains the complete input data set including the
libref, for a maximum length of 41 characters.
This technique is particularly valuable when combined with the data set list syntax introduced in SAS
9.2.
data combined;
set sashelp.prdsal: indsname=DataSetName;
length Source $ 32;
Source=scan(DataSetName,2);
run;
proc freq data=combined;
tables Source;
title1 "Source Data Sets for Combined Data";
run;
二维码

扫码加我 拉你入群

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

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

关键词:Modernize dinosaur programs Program Modern SAS Your programs dinosaur Modernize

t be a sas dinosaur.pdf
下载链接: https://bbs.pinggu.org/a-666905.html

1.24 MB

需要: 10 个论坛币  [购买]

已有 1 人评分论坛币 收起 理由
eijuhz + 100 精彩帖子

总评分: 论坛币 + 100   查看全部评分

混在波士顿

沙发
cjulianan(未真实交易用户) 发表于 2010-6-18 05:43:35
Can you sell it for 1?

藤椅
aijinrong(未真实交易用户) 发表于 2010-6-18 07:38:28
cjulianan 发表于 2010-6-18 05:43
Can you sell it for 1?
你这么多论坛币还嫌贵?!
已有 1 人评分学术水平 热心指数 收起 理由
eros_zz + 1 + 1 看到你们2个的论坛币我觉得这算是个冷幽默了

总评分: 学术水平 + 1  热心指数 + 1   查看全部评分

混在波士顿

板凳
liyangbo(未真实交易用户) 发表于 2010-6-18 21:38:41
Thanks for your sharing.

报纸
myxixi(真实交易用户) 发表于 2010-6-19 10:55:59
Thank you very much.

地板
kkwei(真实交易用户) 发表于 2010-6-20 09:52:10
我来支持一下楼主这文件还是很不错的哈

7
aijinrong(未真实交易用户) 发表于 2010-6-21 06:28:15
kkwei 发表于 2010-6-20 09:52
我来支持一下楼主这文件还是很不错的哈
thanks
混在波士顿

8
aijinrong(未真实交易用户) 发表于 2010-6-21 23:26:26
reeee, up for sale
混在波士顿

9
zzh256(未真实交易用户) 发表于 2010-6-22 02:23:49
Thanks a lot, but too expensive.

10
renda_shitou(真实交易用户) 发表于 2010-6-22 20:39:59
收藏先!!!!!!

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

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