Page 1 of 1

11 Responses

  1. I ran the first three lines of the following codes but running an error for the third line:

    %LET DSID=%SYSFUNC(OPEN(work.test,IN));



    The error message : The %IF statement is not valid in open code.

    But I believe it was fine when I ran them first time. So any advice?

  2. You need to include the said lines in a macro. Maybe I should have mentioned that…

  3. Thanks John .. That was helpful

  4. Doesn’t that say how worthless sas is that it takes at least 3 lines of code to do what other languages can accomplish in 5 characters?

  5. Another way is to use ODS to output the results of a call to PROC CONTENTS. And you get a lot more information.

  6. I have timing from the log for just this one

    5252 data _null_;
    5253 if 0 then set a3 nobs=caseslost;
    5254 put “WARNING: no estimates ” caseslost=;
    5255 stop;
    5256 run;

    WARNING: no estimates caseslost=204
    NOTE: DATA statement used (Total process time):
    real time 0.00 seconds
    cpu time 0.01 seconds

  7. Come to think of it… how can the “real” time be less than the cpu time?

Leave a Reply