A*******s 发帖数: 3942 | 1 suppose we use a procedure to get a table from output mode, for example:
output out=dataset ...;
or use ODS output table like:
ods output ods_table_name=dataset;
However in neither way can i use obs= dataset options to restrict the number of observations in output dataset, the following code doesnt work
ods output ods_table_name=dataset(obs=1);
But other dataset options seems OK, say where=, keep=, drop=, ...
couldnt understand why | o****o 发帖数: 8077 | 2 check the manual:
OBS= data step option:
Specifies when to stop processing observations
1. Valid in: DATA step and PROC steps
2. Category: Observation Control
3. Restriction: Use with input data sets only <----********
4. Restriction: Cannot use with PROC SQL views
5. Default MAX
number of observations in output dataset, the following code doesnt work
【在 A*******s 的大作中提到】![](/moin_static193/solenoid/img/up.png) : suppose we use a procedure to get a table from output mode, for example: : output out=dataset ...; : or use ODS output table like: : ods output ods_table_name=dataset; : However in neither way can i use obs= dataset options to restrict the number of observations in output dataset, the following code doesnt work : ods output ods_table_name=dataset(obs=1); : But other dataset options seems OK, say where=, keep=, drop=, ... : couldnt understand why
| l*********s 发帖数: 5409 | 3 ods option controls reading, not writing.
use where statement to subsetting output. |
|