By admin | August 10, 2009

SAS Certified Base Programmer 50 Questions (48)

The following SAS program is submitted: proc report data=survey nowd; column age choice1; <insert DEFINE statement here> define choice1/display; run; Which one of the following DEFINE statements completes the program and displays values of the variable Age in ascending order? a. define age/sort; b. define age/order; c. define age/sort by age; d. define age/order by […]

By admin | August 10, 2009

SAS Certified Base Programmer 50 Questions (47)

The following SAS program is submitted: data work.travel; do i=1 to 6 by 2; trip + i; end; run; Which one of the following is the value of the variable trip in the output data set? a. 2 b. 3 c. 9 d. 10

By admin | August 10, 2009

SAS Certified Base Programmer 50 Questions (46)

A raw data record is listed below. 1—+—-10—+—-20—+— $23,456 750 The following SAS program is submitted: data bonus; infile ‘file-specification’; input salary $ 1-7 raise 9-11; <insert statement here> run; Which one of the following statements completes the program and adds the values of salary and raise to calculate the expected values of the newsalary […]

By admin | August 10, 2009

SAS Certified Base Programmer 50 Questions (45)

The following SAS program is submitted: data work.test; length city $20; city=’Paris’; city2=trim(city); run; Which one of the following is the length of the city2 variable? a. 5 b. 6 c. 8 d. 20

By admin | August 10, 2009

SAS Certified Base Programmer 50 Questions (44)

The following SAS program is submitted: proc contents data=sasuser._all_ nods; run; Which one of the following is produced as output? a. the list of all data set names in the Sasuser library only b. the descriptor portion of the data set named Sasuser._All_ c. the descriptor portion of every data set in the Sasuser library […]