Question 22: You have been given below program
data PREDICTED (drop=WEIGHT index );
set User ;
array month_{6} xxxx (1,2,3,4,5,6) ;
array weigh_{6} ;
EXISTING_WEIGHT=WEIGHT;
do index=1 to dim(month_);
put _all_;
weigh_{index}=month_{index}+WEIGHT+WEIGHT*.02;
WEIGHT=weigh_{index}
end;
run;
proc print data=PREDICTED;run;
What value you will put in place of xxxx , so that all month_ variable become temporary and will not be part of output?
- _temporary_
- Get all Questions and Answer from here
- You need to have paid subscription to access all questions
- Thanks for considering SAS Certification Material
Correct Answer : 1 Exp : If you want that all the variables created by an array to be temporary and you dont need them after program execution, you can
use _temporary_ keyword after array declaration.
You can access to full explanation to question and answer from this page.