Hi all, For class I am tasked with creating a macro program that will pull from all data sets and all numeric variables to create a histogram and summary statistics table. Here is what I was given: Write a macro program named ‘**********’ which may be used to summarize a numeric variable from any data set. The macro will generate 2 pieces of output: 1) a histogram, and 2) summary statistics (i.e. the macro should contain 2 steps). The macro should contain the following 4 parameters: '*****’ to specify the data set name '***’ to specify the numeric variable ‘****’ to specify summary statistics. Include default statistics of N, MEAN, and STDDEV. ‘****’ to specify the number of decimals. Include a default value of 1. This is where I'm at right now and things are not matching up very well after trying to model after an existing program: %MACRO ********** (****** = , Stats = N MEAN STDDEV, **** = _NUMERIC_, NDec= 1 ); DATA WORK.&****; SET &***; WHERE *** = "&***"; RUN; TITLE1 "***********************"; PROC MEANS DATA = WORK.&**** &Stats; VAR &***; RUN; PROC SORT DATA = WORK.&****; BY DESCENDING &****; RUN; TITLE1 "*******************************"; PROC PRINT DATA = WORK.&**** ; VAR &***; RUN; TITLE; %MEND ********; %************ (******* = &*****, **** = &****, Stats = &Stats) I am particularly concerned about what I should place in lieu of variable names throughout the program.
... View more