The following SAS program is submitted:
data work.passengers;
if OrigPassengers = . then OrigPassengers = 100;
TransPassengers = 100;
OrigPassengers = .;
NonPaying = 10;
TotalPassengers = OrigPassengers + TransPassengers;
run;
Which one of the following is the value of the TOTALPASSENGERS variable in the output data set?
A. 100
B. 110
C. 200
D. . (missing numeric value)
Disclaimer
SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS Institute Inc. in the USA and other countries. ® indicates USA registration.
Other brand and product names are trademarks of their respective companies.
This blog is not responsible for any kind of copyright violation. This blog just collects the links hosted or posted by other servers/people/search engines.The creator of this page or the ISP(s) hosting any content on this site take no responsibility for the way you use the information provided on this site.If anybody has any copyright claim on it and doesn’t wish the information provided to be shown on our site, please do respond to this email. We shall remove them off immediately. Any inconvenience is regretted. Please do mention your exact grievance/problems with respect to certain third party links. We assure you that appropriate action will be taken off. Thank you
SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS Institute Inc. in the USA and other countries. ® indicates USA registration.
Other brand and product names are trademarks of their respective companies.
This blog is not responsible for any kind of copyright violation. This blog just collects the links hosted or posted by other servers/people/search engines.The creator of this page or the ISP(s) hosting any content on this site take no responsibility for the way you use the information provided on this site.If anybody has any copyright claim on it and doesn’t wish the information provided to be shown on our site, please do respond to this email. We shall remove them off immediately. Any inconvenience is regretted. Please do mention your exact grievance/problems with respect to certain third party links. We assure you that appropriate action will be taken off. Thank you
11 comments:
Answer: D
In an assignment statement, if one of the values is missing then the value assigned to is set to missin
wat is the significance of if statement in the function above?
D. . (missing numeric value)
Answer is D
@ankur: During the 1st occurance of OrigPassengers, It will set the value to 100 for every missing value. during it's second occurance, all those value will be overwritten by '.'
it is nice question and answerer clinnovo offers course in SAS course cdm Course, and others feel free contact us in www.clinnovo.com
Answer is D.
In a mathematical expression (using arithmetic operators), if one of the operand's values is missing then the value of result is set to missing.
When you use a missing value in an arithmetic expression, SAS sets the result of the expression to missing. If you use that result in another expression, the next result is also missing. In SAS, this method of treating missing values is called propagation of missing values.
D
As here we are given assignment stmt
and if any value is missing in assignment stmt then the answer which we get is missing
Ans D
D
Thanks for sharing the questions. Kindly keep updating.
SAS Training in Chennai | SAS Course in Chennai | SAS Training Institutes in Chennai | SAS Institute in Chennai | SAS Training Institute in Chennai | SAS Training Center in Chennai | SAS Analytics Training in Chennai | SAS Training Chennai | SAS Courses in Chennai
Post a Comment