|
It is interesting to notice that this modified code won't work either
unless the "set" statement is left for the end, just before the "run"
statement.
I'm still not sure of why this is, but it obviously have to do with
Victor's comment about SAS PC not accepting an empty dataset in the
"set" statement. As far as I know, you can do it in the mainframe.
Ed
---cscott@table.jps.net wrote:
>
> In comp.soft-sys.sas, you wrote:
> >This piece of code will work in the mainframe, but for some reason it
> >won't in the PC. Any ideas as of why??
> >
> >543 data _null_;
> >544 set search;
>
> set search nobs=nobs;
>
> >545 file print;
> >546 if nobs=0 and _n_ le 1 then put
> >547 'EMPTY DATA SET!!!';
> >548 run;
> >
> >NOTE: Variable NOBS is uninitialized.
>
> This should be your clue.
>
> >NOTE: 0 lines were written to file PRINT.
> >NOTE: The DATA statement used 0.0 seconds.
> >
>
>
> --
> Christopher Scott | cscott@table.jps.net
>
_________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.com
|