楼主: 灵犀一指
16231 8

请教SAS ADVANCE 题目 [推广有奖]

  • 0关注
  • 0粉丝

已卖:19份资源

高中生

65%

还不是VIP/贵宾

-

威望
0
论坛币
2 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
600 点
帖子
39
精华
0
在线时间
17 小时
注册时间
2008-3-12
最后登录
2019-1-12

楼主
灵犀一指 发表于 2010-7-27 14:34:34 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
马上要进行SAS 的高级考试了, 还有几道题目有点疑问,在此,想大家请教:希望指导!

When attempting to minimize memory usage, the


most efficient way to do group processing when


using the MEANS procedure is to use:



A.


the BY statement.




B.


GROUPBY with the NOTSORTED specification.




C.


the CLASS statement.




D.


multiple WHERE statements.



个人认为因该是选A,理由为, 但是看到有的答案选C,请指教!



A quick rule of thumb for the space


required to run PROC SORT is:




A.


two times the size of the SAS data set being sorted.




B.


three times the size of the SAS data set being sorted.




C.


four times the size of the SAS data set being sorted.




D.


five times the size of the SAS data set being sorted.




SAS pre guid 中有描述:
The SORT procedure is one technique that can be used to group or order data.
However, the SORT procedure can use a high volume of resources. When an
uncompressed data file is sorted using the SORT procedure, SAS requires enough space
in the data library for two copies of the data file, plus a workspace that is
approximately two to four times the size of the data file.

题中所言的the space
required to run 与 workspace 的含义是一致的吗? 如果是的话,在SAS9.1
以后的本版中就应该是2倍的,如果值得是全部的话,就应该是4倍的?


The following SAS program is submitted:




data WORK.TEMP;


length A B 3 X;


infile RAWDATA;


input A B X;


run;




What is the length of variable A?




A.


3




B.


8




C.


WORK.TEMP is not created - X has an invalid length.




D.


Unknown.



通过程序验证,应该是C, 但是有参考答案为A,请指教


Given the following macro program:




%macro MAKEPGM(NEWNAME, SETNAME, PRINT);


data &NEWNAME;


set &SETNAME;


run;


%if &PRINT=YES %then %do;


proc print data=&NEWNAME.(obs=10);


run ;


%end;



%mend;




Which option would provide feedback in the


log about the parameter values passed into


this macro when invoked?




A.


MPRINT




B.


MDEBUG




C.


MLOGIC




D.


MPARAM



个人认为应该选A, 但有参考答案为C,请指导


不胜感激!




二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:ADVANCE VANCE advan ance NCE 请教 题目 SAS ADVANCE

回帖推荐

frank41300 发表于2楼  查看完整内容

1.A quick rule of thumb for the space required to run PROC SORT is three times the size of the SAS data set being sorted. 这是我在网上查到的答案,与论坛上的答案不一样,你可以把整句话拷到Google里查一下,就会看到。 2.关于length A B 3 X; 这道题,WORK.TEMP is not created ,这是对的,但是,data set 的discribe 部分已经有了,所以,A的length 是3

本帖被以下文库推荐

沙发
frank41300 发表于 2010-7-28 00:37:30
1.A quick rule of thumb for the space required to run PROC SORT is three times the size of the SAS data set being sorted.
这是我在网上查到的答案,与论坛上的答案不一样,你可以把整句话拷到Google里查一下,就会看到。
2.关于length A B 3 X; 这道题,WORK.TEMP is not created ,这是对的,但是,data set 的discribe 部分已经有了,所以,A的length 是3

藤椅
灵犀一指 发表于 2010-7-28 10:18:12
140-2010: Dear Miss SASAnswers: A Guide to Sorting Your Data

中的描述是这样的:
If you want the sort to complete entirely in memory, a simple rule of thumb is four times the size of the data set. ....

板凳
michelle0921 发表于 2011-10-30 10:39:30
2.关于length A B 3 X; 这道题,WORK.TEMP is not created ,这是对的,但是,data set 的discribe 部分已经有了,所以,A的length 是
用proc contents data=work.temp;run;
has the following output:
Alphabetic List of Variables and Attributes

                                  #    Variable    Type    Len

                                  1    A           Num       3
                                  2    B           Num       3
                                  3    X           Num       8

报纸
wazhong 发表于 2013-6-12 12:48:52
ding

地板
mirandaduan 发表于 2013-10-4 22:16:15
Item 7 of 63
A quick rule of thumb for the space required to run PROC SORT is:
Beginning with SAS 9, the workspace required for an uncompressed data file
is approximately twice the size of the data file. The workspace can be
allocated in memory and/or on disk as a utility file, depending on the sort
utility and on the options chosen.
A.
two times the size of the SAS data set being sorted.

7
gloomywang1 发表于 2016-6-23 05:54:58
所以到底是什么呀?(′・_・`)

8
hengyejing 发表于 2016-10-4 01:33:22
灵犀一指 发表于 2010-7-28 10:18
140-2010: Dear Miss SASAnswers: A Guide to Sorting Your Data

中的描述是这样的:
The multiplier 4 applies only to utility files used in releases prior to SAS 9, when PROC SORT needs to use disk space in order to sort the data. For in-memory sorting and sorting with SAS 9 and later, the multiplier is 2 or less.
Threaded processing takes advantage of multiple CPUs by executing multiple threads in parallel (parallel processing). Threaded procedures are completed in less real time than if each task were handled sequentially, although the CPU time is generally increased.  
When a threaded sort is used, the observations in the input data set are divided into equal temporary subsets, based on how many processors are allocated to the SORT procedure. Each subset is then sorted on a different processor. The sorted subsets are then interleaved to recreate the sorted version of the input data set.

9
steven_pan 在职认证  发表于 2019-3-26 10:36:47
sas adv prep

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2025-12-31 01:30