AND ANSWERS
#6 Open a new programming window to create MAC03.sas in cert\programs. This
project uses 100 data sets, cert.data1 through cert.data100. The data sets all contain
the same variables.
Write a SAS program that will:
Define a macro named combo03. This macro should append the data sets to each
other, in numeric order (data1, then data2, then data3, etc) into one data set named
work.combined03.
Call your combo03 macro.
Run your program and troubleshoot as necessary. When you are finished with the
project, answer the next two questions. - answer- %macro combo03;
data work.combined03;
set
%do i=1 %to 100;
cert.data&i
%end;
;
run;
%mend combo03;
%combo03
#6 How many observations are in the output data set? Enter your numeric answer in
the space below: - answer- 5189
#6 What is the value of variable VAR4 in observation 2000? Enter your numeric
answer in the space below: - answer- 386
#8 Write a SAS program that will:
Use macro debugging system options to answer the following 2 questions.
Call the compiled macro cars18 with two positional parameter values:
· Asia
· Europe - answer- options mprint;
%cars18(Asia, Europe)
#8 What is the value of the OBS= option in the SET statement? Enter your numeric
answer in the space below: - answer- 1000
#10 Open a new programming window to create ACT22.sas in cert\programs.
Write a SAS program to load the cert.division22 data set into a HASH object. Use
the following guidelines:
DIV is the key component containing the Division code
League and Division are the data components and should be defined with a
character variable length of 10 bytes.