BUS 283W Lecture Notes - Lecture 3: Global Macro, Autohotkey, Eval

63 views15 pages
SAS ADVANCED by mikeleung110 updated 27.Jan.2018 by_MZX
請留意,這並不是最強的機經,我想這個世界永遠沒有最強的,只有更好更高質素的機經,我在此希望所有享
用及讀過這機經的朋友,希望你們參考之時能再把我這個機經不斷不斷的改善加強,我更加想將這些機經和
LEGENDS發揚光大,把分享機經的精神宣揚出去,使得日後使用的朋友在學習上更加事半功倍!
容主要有四大部分:
Contents
1. 變題機經 3
2. 填空題 6
3. 新題庫 8
经题目数量:
1.63中的53道考2.填空9道;3.29道。
Legends:
FIB=FILL IN THE BLANKS=填空題
CBSC=CHANGED BUT SAME CONCEPT=題目有變但概念大致相同
CBSA=CHANGED BUT SAME ANSWER=題目有變但相同的答案
CH=CHANGED=題目有變
MDI=MIND THE DISTRUBED ITEMS=小心干擾的項目
ANS=正確答案
1
Unlock document

This preview shows pages 1-3 of the document.
Unlock all 15 pages and 3 million more documents.

Already have an account? Log in
1. 變題機經
變題機經by mikeleung110 updated by 27.Jan.2018 by MZX
Q
Details (updated by 02.Jan.2018 by MZX <<使容或作更改的話,請你標註日期的月
/mmddyyyyddmmyyyy)
63容沒有變,注意答案的選項位置可能有變
明得非常非常清楚。(讓你們見識一下何謂質素機經,沒有最強的機經,只
())
2
 
3
CBSA: Replace the equal sign with the IN operator
4
CBSA: into :GROUPS separated by ','
MDI: : into GROUPS separated =',' (冒號在INTO)
2c项你用into :GROUPS separated by ','what groups will be stored?,答案
0-2930-4950+
3Sql macro-variable
type1, type2, type3, sale1, sale2, sale3 六个宏量,
into : type1 -:type3 , :sale1- :sale3
5
7
9
CH: JONES, 105
ANS: GROUP BY
10
CH: 95115
ANS:2
11
CH: (調); 不: Work.ErrorsWork.Missing
CBSA: When TEMP is used in another SAS step, data set is created ()
12
 
13
14
 有干describe table后没有等号!
15
CH: GROUP BYCODE
ANS:
JONES 100
SMITH 400
16
intersect corr。把原四个果搞清楚就行
17
 
18
19
QUOTATION MARK
ANS: where upcase(Name)="%upcase(&Value)";
MDI: where upcase(Name)="upcase(&Value)";
21
22
 
23
 
24
和前面有道似,都是考%eval
25
CH: Nono
ANS:2
27
 
28
 
2
Unlock document

This preview shows pages 1-3 of the document.
Unlock all 15 pages and 3 million more documents.

Already have an account? Log in
29
30
QUOTATION MARK /productbookmerchandise变math
ANS: %put the value is "&product.";
MDI: %put the value is ""&product."";
31
32
 
33
CBSC
36
37
CH: EXCEPT ALL CODE
ANS:
Lauren
Chang
Chang
38
CH: 410
ANS: Result is 0
39
  第一句statement改成 %let Mv=bicycles
40
 
41
CBSA: Mlogic 变形:log 内容用什么option
43
CH: Output JONES 100
ANS: having avg(Cost) < (select avg(Cost) from WORK.ONE)
44
ANS: Describe table
MDI: Describe table= ()
45
ANS: 1,2 ()
再加另一變題:
CH:列出三段不同的CODE目中明确表明了unsorted
CODE中要選有二個特點:
1) Proc SORT with Nodupkey, and with an option(drop=xxx)
2) By var
MDI:
1) By descending (Because ORDER BY statement is in ascending order, so cannot choose DESC)
2) Nodup
3) IF First.Customer_ID choice doesn’t sort the data first, so cannot be used
ANS:
Proc sort data=xxx
Out=work.sorted (drop=xxx) nodupkey;
By order_var;
Run;
46
CBSC like Q16 & Q37 . output成了,答案intersect
47
QUOTATION MARKQUOTATION MARK
這是一個QUOTATION MARK 都沒有的2thursday改成了Monday.
ANS: %if &sysday = Thursday %then %do;
MDI1: %if &sysday = "Thursday" %then %do;
MDI2: %if "&sysday" = Thursday %then %do;
48
Want .清楚!也是属于明明得看就是想不起哪个答案的型!!!
3
Unlock document

This preview shows pages 1-3 of the document.
Unlock all 15 pages and 3 million more documents.

Already have an account? Log in

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers

Related Documents