Click on the Comments to view the Answers

Wednesday, January 27, 2010

Q28

The following SAS program is submitted:

data work.accounting;
set work.dept1 work.dept2;
run;

A character variable named JOBCODE is contained in both the WORK.DEPT1 and WORK.DEPT2 SAS data sets. The variable JOBCODE has a length of 5 in the WORK.DEPT1 data set and a length of 7 in the WORK.DEPT2 data set.
Which one of the following is the length of the variable JOBCODE in the output data set?

A. 5
B. 7
C. 8
D. 12

26 comments:

SASGuru said...

Since SAS sees the variable Job_code in DEPT1 for the first time of length of 5 Bytes…it sets the length to be 5…All the values that are read from DEPT2 are truncated to Chars….

pravin said...

im newbie i can be wrong,
while reading the data set2 , doesnt sas overwrite the values of the first data set.

jaya said...

answer is 'A ' as the lenghth of ist dataset variable will count

Harkiran said...

A

moneybiz said...

A, Agreed

Avi said...

A , Agreed

Ankur said...

A..is coorrect

Arunima Rana said...

A is the answer

BALA said...

i think it is "b" correct me if wrong

Wai said...
This comment has been removed by the author.
Ravi Kishore said...

answer 1

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

ans is A

Ryan Lo said...

This program concatenates DEPT1 & DEPT2. At compile time, SAS reads all the information (descriptor portion) of DEPT1 first then DEPT2. Therefore, just like SASGuru said, answer is A.

sujan kumar said...

answer A

kinnari said...

A

Varun said...

Ans A

Krishna Rajwanshi said...

Hello SAS Guru,
good posting for SAS programming

Stevina Rumao said...

Ans A

Daniel Mason said...

It was really a nice article and i was really impressed by reading thisarticle We are also giving all software Course Online Training.The Sas Online Training is one of the leading Online Training institute in the world.

xiao chelsey said...
This comment has been removed by the author.
H. C. said...

B

H. C. said...

A

Harsh Mohan said...

For latest and updated SAS certification dumps in PDF format contact us at completeexamcollection@gmail.com.
Refer our blog for more details
http://completeexamcollection.blogspot.in/2015/12/sas-certification-dumps.html

Priya Sethuraman said...


Its A because the base dataset has already the length set as 5 if you try to reset after set statement it gives you a warning.



Base SAS training in Chennai

Datawarehousing training in Chennai

Informatica training in Chennai

Hadoop training in Chennai

MSBI training in Chennai

Tek Classes said...

Answer :A
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

Harsh Mohan said...

For latest and updated SAS certification dumps in PDF format contact us at completeexamcollection@gmail.com.
Refer our blog for more details
http://completeexamcollection.blogspot.in/2015/12/sas-certification-dumps.html

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