Please complete in SAS and provide output as well as modified codes 11. Controll
ID: 3728130 • Letter: P
Question
Please complete in SAS and provide output as well as modified codes
11. Controlling Macro Variable Storage Open the m105e11 program shown below into the Editor window. imacro varscope a. data _null_; set orion.customer type end-final; call symputx( 'localtype' |left (_n_), Customer_Type)i if final then call symputx(' localn',-n); run ; %put imend -user-; varscope; b. Modify the program so that all macro variables that are created in the DATA step are stored in the local symbol table. c. Modify the program by adding the following statement before the DATA step and removing the scope specification in the SYMPUTX routine: local x; In which symbol table are the macro variable d. Modify the program so that all macro variables that are created in the DATA step are stored in the global symbol table.Explanation / Answer
a)Macro variable can be used anywhere in open code.Any program need tobe made as reusable.
b)code-%macro doit;
%do i=1 %to &NObs;
%put # # # Processing &&Name&i # # #;;
%* ---- Analysis Code Goes Here ----- *;
%end;
%mend;
%doit;
c)Macro variables are stored in symbol tables, which list the macro variable name and its value.
d)DATA step are stored in the global symbol table
code-proc sql;
select min(bot0) as min , max(bot0 ) as max
from gds1;
quit;
data fix2b;
set fix1;
do i=&min to &max;
endd;
run;
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.