电脑桌面
添加小米粒文库到电脑桌面
安装后可以在桌面快捷访问

SAS认证考试(官方练习题集和校正答案)VIP专享VIP免费

SAS认证考试(官方练习题集和校正答案)_第1页
SAS认证考试(官方练习题集和校正答案)_第2页
SAS认证考试(官方练习题集和校正答案)_第3页
1. A raw data file is listed below. 1---+----10---+----20---+--- son Frank 01/31/89 daughter June 12-25-87 brother Samuel 01/17/51 The following program is submitted using this file as input: data work.family; infile 'file-specification'; run; Which INPUT statement correctly reads the values for the variable Birthdate as SAS date values? a. input relation $ first_name $ birthdate date9.; b. input relation $ first_name $ birthdate mmddyy8.; c. input relation $ first_name $ birthdate : date9.; d. input relation $ first_name $ birthdate : mmddyy8.; Correct answ er: d An informat is used to translate the calendar date to a SAS date value. The date values are in the form of two-digit values for month-day-year, so the MMDDYY8. informat must be used. When using an informat with list input, the colon-format modifier is required to correctly associate the informat with the variable name. You can learn about • informats in Reading Date and Time Values • the colon-format modifier in Reading Free-Format Data. 2. A raw data file is listed below. 1---+----10---+----20---+--- Jose,47,210 Sue,,108 The following SAS program is submitted using the raw data file above as input: data employeestats; input name $ age weight; run; The following output is desired: name age w eight Jose 47 210 Sue . 108 Which of the following INFILE statements completes the program and accesses the data correctly? a. infile 'file-specification' pad; b. infile 'file-specification' dsd; c. infile 'file-specification' dlm=','; d. infile 'file-specification' missover; Correct answ er: b The PAD option specifies that SAS pad variable length records with blanks. The MISSOVER option preven...

1、当您付费下载文档后,您只拥有了使用权限,并不意味着购买了版权,文档只能用于自身使用,不得用于其他商业用途(如 [转卖]进行直接盈利或[编辑后售卖]进行间接盈利)。
2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。
3、如文档内容存在违规,或者侵犯商业秘密、侵犯著作权等,请点击“违规举报”。

碎片内容

确认删除?
VIP
微信客服
  • 扫码咨询
会员Q群
  • 会员专属群点击这里加入QQ群
客服邮箱
回到顶部