Click on the Comments to view the Answers

Wednesday, January 27, 2010

Q29

The following SAS program is submitted:

libname sasdata 'SAS-data-library';
data test;
set sasdata.chemists (keep = job_code);
if job_code = 'chem3' then description = 'Senior Chemist';
run;

The variable JOB_CODE is a character variable with a length of 6 bytes.

Which one of the following is the length of the variable DESCRIPTION in the output data set?

A. 6 bytes
B. 8 bytes
C. 14 bytes
D. 200 bytes

28 comments:

SASGuru said...

Answer: C

At compilation time, SAS finds the occurrence of the variable DESCRIPTION for the first time and sets its length as 14 bytes.

Unknown said...

i think it shud be D.. 200 bytes... correct me if i m wrong...

Arunima Rana said...

Answer is C

chenna sunkarsa said...

answer is c

Unknown said...

Answer is C

Rujuta........ said...

Answer is C

pal said...

the 200 bytes for scan(some var) then u get 200 bytes. not for this it is C only.

venkatesh said...

D is correct

venkatesh said...

sorry C is correct answer

amenem said...

Agree with sasguru even if the conditional statement fails the variable gets the size of the charaters it is assigned to.

REKHA said...

it would take 14bytes..If it was particularly mentioned as LIST, then it would have taken only 8bytes by default..so C

Aman said...

Answer is C. Variable,Description, has not been given any length. so, It will assume the length of the first value that it will get.

hemanth said...

SASGure.....i have one question for u plz answers me.....how many data sets can be use in set statement.i mean maximum no of data sets.

Sanjeev said...

c is correct

Unknown said...

Anybody can you help to check whether an Array exist in dataset or not..........

Ryan Lo said...

Just like SASGuru said, answer is C.

Unknown said...

answer is C. if it is not correct me...

Unknown said...

answer c

Zach Anderson said...

Answer: C

Try the link below for extra base SAS practice questions.

http://sascert3.blogspot.com/2013/03/base-sas-example-question-11.html

Good luck!

Varun said...

Answer: c

Unknown said...

c

Stevina Rumao said...

answer C

Unknown said...

C.

H. C. said...

C

Unknown said...

The Answer is C..!


Run the following SAS code and see what you got in the EMPSAL dataset:

data salary;
input name $ salary;
datalines;
Bruce 40000
Bruce 35000
Dan 37000
Dan .
;
run;

data employee;
input name $ age;
datalines;
Bruce 30
Dan 35
;
run;

data emplsal;
merge employee (in=ine) salary(in=ins);
by name;
if ine and ins;
run;



Base SAS training in Chennai

Datawarehousing training in Chennai

Informatica training in Chennai

Hadoop training in Chennai

Unknown said...

Answer:C Very informative blog and content thank you for sharing with us keep postingsas training,sas online training,learn sas online,sas online course,sas training in bangalore

Unknown said...

It's A nice Post.
Advanced Digital Marketing Course in Bangalore

Unknown said...

C

Post a Comment



Technology Top Blogs On our way to 1,000,000 rss feeds - millionrss.com Hihera.com Blog Directory - OnToplist.com blogarama - the blog directory Blog Directory
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