SAS Certified Adv Programmer 50 Questions (30)
When using the KEY= option in the SET statement in the DATA step, which one of the following is the purpose of the automatic variable _IORC_? a. to determine the amount of I/O usage b. to determine the success of the I/O operation c. to determine the length of the master observation d. to determine […]
SAS Certified Adv Programmer 50 Questions (29)
Given the following SAS log: 55 %let lib = sasuser.; 56 %let dsn = class; 57 %put dsn is &dsn, and lib is &lib; dsn is class, and lib is sasuser. 58 <insert statement here> 59 %put dsn is &dsn, and lib is &lib; WARNING: Apparent symbolic reference DSN not resolved. dsn is &dsn, and […]
SAS Certified Adv Programmer 50 Questions (28)
Which one of the following statements displays all user-defined macro variables in the SAS log? a. %put user=; b. %put user; c. %put _user_; d. options mprint
SAS Certified Adv Programmer 50 Questions (27)
Given the following partial SAS log: 11 %macro a(location); 12 %if &location = FL %then 13 libname &location ‘c:\state’; 14 %mend; 15 %a(FL) NOTE: SCL source line. 16 libname mylib ‘c:\mydata’; ——- 22 ERROR: Libname FL is not assigned. ERROR: Error in the LIBNAME statement. ERROR 22-7: Invalid option name LIBNAME. Which of the following […]
SAS Certified Adv Programmer 50 Questions (26)
The following SAS program is submitted: %let mvar=bye; data _null_; var1=’hi’; var2=’hello’; call symput(‘var1’ || “&mvar”, var2); run; Which one of the following is the name of the macro variable created by the CALL SYMPUT statement? a. var1 b. hibye c. var1bye d. No macro variable is created because the CALL SYMPUT statement is not […]