Page 1 of 1

7 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.

Leave a Reply