Sas 如何在infle中使用firstobs?

Sas 如何在infle中使用firstobs?,sas,Sas,我一直在集合中使用firstobs data test ; set test (firstobs=5) ; run ; 最近我看到了一个代码 data test ; infile 'C:xxx' firstobs=5 ; input xxx ; run ; 我试着运行它,但不起作用。可以在infle中使用firstobs吗是的,可以这样使用firstobs 从: 将读取观察值50到100。尝试仅使用obs= infile file-specification firstobs=50 o

我一直在
集合中使用
firstobs

data test ; 
set test (firstobs=5) ; 
run ;
最近我看到了一个代码

data test ;
infile 'C:xxx' firstobs=5 ;
input xxx ; 
run ;

我试着运行它,但不起作用。可以在
infle
中使用
firstobs
吗是的,可以这样使用firstobs

从:


将读取观察值50到100。

尝试仅使用
obs=
infile file-specification firstobs=50 obs=100;