A little announcement. A lot to explore.

Happy learning!

Explore lessons, including SAS & R programs and practice data.

Search lessons

Type at least 3 characters to see matching lessons.

1 / 8
Working with Macro Programs
Question 1 of 8



Which of the following correctly references the macro named Printdsn as shown here:

%macro printdsn(dsn,vars);
    
%if &vars= %then %do;
        proc print data=&dsn;
        title 
"Full Listing of %upcase(&dsn) data set";
        run;
    
%end;
    
%else %do;
        proc print data=&dsn;
        var &vars;
        title 
"Listing of %upcase(&dsn) data set";
        run;
    
%end;
%mend;




Saving progress… My progress