由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Statistics版 - SAS Help
相关主题
Stupid SAS programming style is driving me crazy....一个关于sas的弱问题。
刚才的sas programmer面试问题[合集] 如何DETECT empty file in R?
问个sas问题(包子)[合集] SAS question
[合集] how to combine ATE files using R求SAS 9.2 LINUX 的sid,5个包子
Sas programming help请教SAS输入法的问题
【包子】生成RAW SAS DATASET问题help please: automatic run SAS in a batch mode.thanks
好心的人--求sas setinit file!help on a vary strange result: length statement
How to search all data files in a folder?请教怎么打开SAS manual file啊?谢谢
相关话题的讨论汇总
话题: sas话题: raw话题: file2话题: files话题: file1
进入Statistics版参与讨论
1 (共1页)
m******4
发帖数: 26
1
Thanks first!
I have two RAW files:
file1: file2:
id id name
101 101 a
102 110 b
103 102 c
... 112 d
103 e
I only want to READ IN the data in raw file2 which are matched by id in raw
file1,i.e.
id name
101 a
102 c
103 e
Important: 1.these are raw files, not SAS data sets
2.I do not want to read in all records from file2
because it is too large.
a********a
发帖数: 346
2
It is easy. Try
Proc sql;
create table file3 as
select a.id, a.name
from file2 as a
where a.id in (select id from file1);
quit;
m******4
发帖数: 26
3
Thanks!
but the files are not SAS datasets, they are raw files.

【在 a********a 的大作中提到】
: It is easy. Try
: Proc sql;
: create table file3 as
: select a.id, a.name
: from file2 as a
: where a.id in (select id from file1);
: quit;

1 (共1页)
进入Statistics版参与讨论
相关主题
请教怎么打开SAS manual file啊?谢谢Sas programming help
急问个简单的SAS ODS PDF的问题【包子】生成RAW SAS DATASET问题
SAS file question,thanks very mcuh好心的人--求sas setinit file!
how to automatted run a SAS program on every monday?How to search all data files in a folder?
Stupid SAS programming style is driving me crazy....一个关于sas的弱问题。
刚才的sas programmer面试问题[合集] 如何DETECT empty file in R?
问个sas问题(包子)[合集] SAS question
[合集] how to combine ATE files using R求SAS 9.2 LINUX 的sid,5个包子
相关话题的讨论汇总
话题: sas话题: raw话题: file2话题: files话题: file1