SAS认证考试官方练习题集和校正答案Word下载.docx

上传人:b****2 文档编号:13869940 上传时间:2022-10-14 格式:DOCX 页数:39 大小:78.25KB
下载 相关 举报
SAS认证考试官方练习题集和校正答案Word下载.docx_第1页
第1页 / 共39页
SAS认证考试官方练习题集和校正答案Word下载.docx_第2页
第2页 / 共39页
SAS认证考试官方练习题集和校正答案Word下载.docx_第3页
第3页 / 共39页
SAS认证考试官方练习题集和校正答案Word下载.docx_第4页
第4页 / 共39页
SAS认证考试官方练习题集和校正答案Word下载.docx_第5页
第5页 / 共39页
点击查看更多>>
下载资源
资源描述

SAS认证考试官方练习题集和校正答案Word下载.docx

《SAS认证考试官方练习题集和校正答案Word下载.docx》由会员分享,可在线阅读,更多相关《SAS认证考试官方练习题集和校正答案Word下载.docx(39页珍藏版)》请在冰豆网上搜索。

SAS认证考试官方练习题集和校正答案Word下载.docx

$first^name

$birthdatwdateS・;

b.inputrelation

$first_name

$birthdatEmmddyy8・;

Cinputrelation

$birthda:

date9・;

d.inputrelation

$birthdatE:

mmddyyS・;

Correctanswer:

d

AninformalisusedtotranslatethecalendardatetoaSASdatevalue.Thedatevaluesarcintheformoftwo-digitvaluesformonth-dav-vear,sotheMMDDYY8.informalmustbeused.Whenusinganinformatwithlistinput,thecolonmodifier

 

isrequiredtocorrectlyassociatetheinformalwiththevariablename.

Youcanlearnabout

•informatsinReadingDateandTimeValues

•thecolon-formatmodifierinReadingFree-FormatData.

2.

Arawdatafileislistedbelow.

1——+10——+20

Jose,47,210

Sue,f108

ThefollowingSASprogramissubmittedusingtherawdatafileaboveasinput:

datacmployccstats;

jnscnJNFILEsecernenthcrc>

inputnameSageweight;

run;

Thefollowingoutputisdesired:

1

name

age

weight

Jose

47

210

Sue

108

WhichofthefollowingINFILEstatementscompletestheprogramandaccessesthedatacorrectly?

a.

infile

1file-specification1

pad;

b.

*file-spec!

flcation*

dsd;

c.

'

file-spec!

flcatIon'

dlm='

zf;

d.

1file-spedflcation'

missover;

b

ThePADoptionspecificsthatSASpadvariablelengthrecordswithblanks.TheMISS()VERoptionpreventsSASfromreadingpasttheendofthelinewhenreadingfreeformatteddata.Ther)LM=optionspecificsthecommaasthedelimiter;

however,consecutivedelimitersarctreatedasonebydefault.TheDSD

J

optioncorrectlyreadsthedatawithcommasasdelimitersandtwoconsecutivecommasindicatingamissingvaluelikethoseinthisrawdatafilu.

Youcalllcamabout

•thePADoptioninReadingRawDatainFixedFields

•theM1SS()VERoptioninCreatingMultipleObservationsfromaSin^eRecord

•ther)LM=optionandtheDSDoptioninReadingFree-FormatData.

3.Thefollowingprogramissubmitted:

datanumrecords;

infilecardsdlm=\,;

inputagcntlZagcnt2Zagcnt33;

cards;

joncs^brtmnijoncs.spcnccr,brown

9

WhatisthevalueforthevariablenamedAgcnc2illthesecondobscn^atioii?

u.Brown

b.Spencer

c.八(missingcharactervalue)

d.Thereisnovaluebecauseonlyoneobservationiscreated・

TheCARDSstatementenablesyoutoreadinstreamdata.AnynumberofconsecutivecommasarcconsideredtobeasingledelimiterasaresultoftheDLM=option,andthelengthofeachvariabledefaultsto8bytes・Therefore,thevaluesjoncsybrownjon^andspencerarcassignedtoAgend,Agcnc2,andAgcnt3,respectively,forthefirstobservation.TherestofthedataontherecordisnotreadbytheINPUTstatementandisnotoutputtothedataset

•theCARDSstatementinCreatingSASDataSetsfromRawData

•thedefaultlengthofvariablesinReadingFree-FormatData.

4.

1——+10——+20——+30——+40——+50

TWOSTORY104021SANDERSROAD$55,850

CONDO215042.5JEANSAVENUE$127,150

datawork.houses;

infile^file-specification\

insertJNPUTstatementhcrc>

WhichoneofthefollowingINPUTstatementsreadstherawdata

filecorrectly?

input

@1

style$8・

+1

sqfeet4・

bedrooms1・

@20

baths3・

street16・

@40

pricedollar8;

style$8

@20baths3・street$16

@40pricedollars・;

input

street$16・

pricedollars・;

cl.

baths3

c

Formattedinputrequiresperiodsaspartoftheinformalname.TheperiodismissingfromthevariablesStyleandStreetinAnswer

b、thevariableBachsillAnswerd、andthevariablePriceinAnswera(whichisalsomissingadollarsigntoreadthevariableStreetasacharactervalue).

YoucanlearnaboutformattedinputandinformatsinReadingRawDatainFixedFields.

5.ThefollowingSASprogramissubmittedatthestartofanewSAS

session:

libnamcsasdacadm

datasasdaca.salcs;

setsasdaca.salcsdara;

profit=cxpcnscs-rc\-cnucs;

procprintdata=salcs;

TheSASdatasetSasdata.Salesdatahastenobsen^ations.Whichoneofthefollowingexplainswhyareportfailstogenerate?

u.TheDATAstepfailsexecution・

b.TheSASdatasetSalesdoesnotexist.

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 初中教育 > 科学

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1