quiz 6.1

13 views
Skip to first unread message

Sumitra

unread,
Aug 6, 2014, 3:03:03 PM8/6/14
to anova...@googlegroups.com
hi vikas,
 I couldn't understand this question, please explain it.
sumitra.
sas-II lesson-2-6,1.pdf

Jennifer SUN

unread,
Aug 6, 2014, 7:32:44 PM8/6/14
to anova...@googlegroups.com

this question test the knowledge on: select - when- otherwise and the if then else.

If the value of none of the when expressions matches the value of the select expression, then SAS executes the statements associated with the OTHERWISE statement. If you do not specify an OTHERWISE statement, the program halts. so for the first program, there will no output if region is missing/

but if then else, the output will be in both output dataset.

sriaxmi brahmadevula

unread,
Aug 6, 2014, 8:38:23 PM8/6/14
to anova...@googlegroups.com
1. Otherwise (without an output statement) will not output to any data sets if the when conditions in the first and the second when statement are not met
where as
2.last else condition in the if statement  will output to both the data sets when the conditions specified on the first if and the second  else if are not met as there are 2 data sets available on the data statement.
Reply all
Reply to author
Forward
0 new messages