Question: 18. The following SAS program is to print out data set using % MACRO statement with parameter. Use the program below. If you submit this

 18. The following SAS program is to print out data set

18. The following SAS program is to print out data set using % MACRO statement with parameter. Use the program below. If you submit this program, you will see the error message in the Log window. Fix the program. Submit the corrected log file and output from the corrected SAS program. (8 points). DATA participants; INPUT Name $ State $ Age; DATALINES; JoAnn NY 50 Jane CA 66 Joyce NY 62 David MA 54 Stan CA 70 Jim MA 71 Bob NJ 72 Kathy CA 48 Young NY 55 Sam NJ 57 RUN ; "MACRO printout (statevar=) ; proc print data = participants; where statevar = "&statevar"; TITLE "&statevar"; run ; $MEND printout; sprintout (statevar = NY)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!