欢迎来到天天文库
浏览记录
ID:42406981
大小:1.47 MB
页数:93页
时间:2019-09-14
《asadv63题解析和机经63题答案解析》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、1.Whenattemptingtominimizememoryusage^themostefficientwaytodogroupprocessingwhenusingtheMEANSprocedureistouse:A.theBYstatement.B.GROUPBYwiththeNOTSORTEDspecification.C.theCLASSstatement.D.multipleWHEREstatements.ShapeoftheDataMostEfficientToolsarelativelysmallnumberofdistinctcombinatio
2、nsofvaluesoftheclassvariable—thesummarizeddatacontains10%orfeweroftheobservationsintheoriginaldataset•PROCMEANS(orPROCSUMMARY)•PROCREPORT•PROCTABULATEarelativelylargenumberofdistinctcombinationsofvaluesoftheclassvariable—thesummarizeddatacontainsmorethan10%oftheobservationsintheorigina
3、ldataset•PROCSQL•DATAstepandPROCSORT曲UsingaGROUPBYstatementinPROCSQLissimilarinCPUusagetoaPROCSORTstepfollowedbyaDATAstep.ComparingResourceUsageacrossThreeTechniquesforUsingPROCMEANSThethreetechniquesforsummarizingdataforspecificcombinationsofclassvariables(allbutthebasicPROCMEANSstep)
4、differinresourceusageasfollows:•TheTYPESstatementinaPROCMEANSstepusesthefewestresources・•AprogramthatcontainstheNWAYoptioninmultiplePROCMEANSstepsusesthemostresourcesbecauseSASmustreadthedatasetseparatelyforeachPROCMEANSstep.•TheWHERE二datasetoptioninaPROCMEANSstepusesmoreresourcesthant
5、heTYPESstatementinPROCMEANSbecauseSASmustcalculateallpossiblecombinationsofclassvariablesbeforesubsetting.However,theWHERE=datasetoptioninPROCMEANSusesfewerresourcesthantheNWAYoptioninmultiplePROCMEANSsteps.2.TheSASdatasetWORK.CHECKhasavariablenamedId_Codeinit.WhichSQLstatementwouldcre
6、ateanindexonthisvariable?A.createindexTdCodeonWORK.CHECK;B.createindex(TdCode)onWORK.CHECK;A.makeindex二Id_CodefromWORK.CHECK;B.defineindex(Id_Code)inWORK.CHECK;关于在SQL语句中创建INDEX的语句格式如下:Generalform,CREATEINDEXstatement:CREATEINDEXindex-nameONtable-name(column-name-l<,•••column-na
7、me-n»;示例语句:/*creatingasimpleindex*/datacrackman;inputid_codename$@;datalines;1java2c++3dephi4asp5c#.netprocsql;createindexid_codeonwork•crackman;quit;log提示简单索引idcode已经建立或者使用:procsql;createindexid_codeonwork•crackman(id_code);quit;之所以括号内的column-name是可选项,是应为在建立Simpleindex时,index-name必须
此文档下载收益归作者所有