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

29 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

krishna said...


Flipkart SBI Offer 2019: 10% Instant Cashback.
Flipkart offers
Flipkart HDFC EMI Offers
flipkart hdfc debit pre approved,
Flipkart SBI Offer May 2019: Grab 10% Offer on SBI Cards,
Grab Cashback - Up to 80% Off at Flipkart SHOP NOW,
Weekend Bonanza Up to 80% Off. Shop Now,
ICICI debit card EMI offers - Flipkart,
Debit card EMI facility - Flipkart,
Flipkart SBI Offer May 2019: Grab 10% Offer on SBI Cards,
Flipkart HDFC Offer 15 -19 May 2019: Grab 10% Offer On HDFC,
Flipkart HDFC EMI offers,
Grab Cashback - Up to 50% Off at Flipkart SHOP NOW,
Inspiron i3 laptops Up to Rs 3,000 Extra Off. Shop Now
Weekend Bonanza Up to 80% Off. Shop Now,
10% Instant Discount* with HDFC Bank Debit and Credit at Flipkart,
Flipkart HDFC Offer (15-19 May) – Extra 10% Off on HDFC Credit,
TV & appliances Sale (Axis Bank Offer) - Flipkart,
Clarence won't be home for lunch,
Monsoon Offers on Home Appliances Flipkart,
10% Off on All Cards on Home Appliances - Flipkart,
Diwali Festive Sale from 9pm - Flipkart,
Flat Rs. 4000 instant discount on transactions made using- Flipkart,
No Cost EMI available on Credit Cards Valid till 10 January ... - Flipkart,
Cashless Pay Store - Flipkart,
10% Instant Discount on SBI Credit Cards - Flipkart,
flipkart samsung carnival,
10% Off on purchase of Fashion, Home & Furniture and - Flipkart,
Rs.2000 Cashback on HDFC Bank Debit and Credit Cards ... - Flipkart,
Ganesh Chaturthi Festive Offers - Flipkart,
flipkart rakhi home store,
Extended Warranty on Appliances - Flipkart,
SBI Debit Card Offer - Flipkart,
Offer Details,
EMI on Debit Cards - Flipkart,
Air purifiers Offers - Flipkart,
Honor Mobiles Day - Flipkart,
Explore New & Latest Mobiles of this season - Flipkart,
HDFC Debit Cards - Flipkart,
Top selling Latest Mobiles - Flipkart,
ICICI Debit Cards - Flipkart
Axis Bank Debit Card - Flipkart,
Top selling Latest Mobiles - Flipkart,
Clarence won't be home for lunch.
Flipkart axis bank offer
Flipkart SBI Offer
Flipkart hdfc Offer
Flipkart citibank Offer
Flipkart debit Offer
Flipkart credit Offer
Flipkart ICICI Offer
Flipkart ICICI Offer

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