By admin | September 9, 2009

SAS Certified Base Programmer 123 Questions (33)

The contents of the raw data file TEAM are listed below: —-|—-10—|—-20—|—-30 Janice 10 Henri 11 Michael 11 Susan 12 The following SAS program is submitted: data group; infile ‘team’; input name $15. age 2.; file ‘file-specification’; put name $15. =5 age 2.; run; Which one of the following describes the output created? A. a […]

By admin | September 9, 2009

SAS Certified Base Programmer 123 Questions (32)

The contents of the SAS data set named PERM.STUDENTS are listed below: name age Alfred 14 Alice 13 Barbara 13 Carol 14 The following SAS program is submitted using the PERM.STUDENTS data set as input: Libnameperm ‘SAS-date-library’; data students; set perm.students; file ‘file-specification’; put name $15. @5 age 2.; run Which one of the following […]

By admin | September 9, 2009

SAS Certified Base Programmer 123 Questions (31)

The contents of the SAS data set PERM.JAN_SALES are listed below: VARIABLE NAME TYPE idnum character variable sales_date numeric date value A comma delimited raw data file needs to be created from the PERM.JAN_SALES data set. The SALES_DATE values need to be in a MMDDYY10 form. Which one of the following SAS DATA steps correctly […]

By admin | September 9, 2009

SAS Certified Base Programmer 123 Questions (30)

A raw data record is shown below: 07Jan2002 Which one of the following informats would read this value and store it as a SAS date value? A. date9. B. ddmonyy9. C. ddMMMyy9. D. ddmmmyyyy9.

By admin | September 9, 2009

SAS Certified Base Programmer 123 Questions (29)

The following SAS program is submitted: libnametemp ‘SAS-data-library’; data work.new; set temp.jobs; format newdate mmddyy10.; qdate= qtr(newdate); ddate= weekday(newdate); run; proc print data = work.new; run; The variable NEWDATE contains the SAS date value for April 15, 2000. What output is produced if April 15, 2000 falls on a Saturday? A. Obs newdate qdate ddate […]