The following SAS program is submitted macro one input two put the value is

The following sas program is submitted macro one

This preview shows page 4 - 8 out of 11 pages.

Question: 2The following SAS program is submitted:%macro one (input);%two;%put the value is &date;%mend;%macro two;data _null_;call symput('date','12SEP2008');run;%mend;%let date=31DEC2006;%one(&date)What is the result when the %PUT statement executes? A. A macro variable DATE with the value 12SEP2008 is retrieved from the local symbol table for the ONEmacroB. A macro variable DATE with the value 12SEP2008 is retrieved from the local symbol table for the TWOmacroC. A macro variable DATE with the value 12SEP2008 is retrieved from the global symbol tableD. A macro variable DATE with the value 31DEC2006 is retrieved from the global symbol tableAnswer: C
Image of page 4
Question: 3Which SET statements option names a variable that contains the number of the observation to readduring the current iteration of the DATA step? Question: 4When reading a SAS data file, what does the NOBS=option on the SET statement represent? Question: 5CORRECT TEXTThe following SAS program is submitted:%macro check(num=4);%let result=%sysevalf(&num+0.5);%put result is &result;%mend;%check(num=10)What is the written to the SAS log? Question: 6The following SAS program is submitted:%micro test(var);
Image of page 5
What is the value of the macro variable TYPE when the %PUT statement executes? Question: 7The following SAS program is submitted:%macro check(num=4);%let result=%eval(&nm gt 5);%put result is &result;%mend;%check (num=10)What is written to the SAS log? Question: 8The following SAS program is submitted:data temp;length 1 b 3 x;infile 'file reference';input a b x;run;What is the result?
Image of page 6
Image of page 7
Image of page 8

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture