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
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
23 comments:
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….
im newbie i can be wrong,
while reading the data set2 , doesnt sas overwrite the values of the first data set.
answer is 'A ' as the lenghth of ist dataset variable will count
A, Agreed
A , Agreed
A..is coorrect
A is the answer
i think it is "b" correct me if wrong
answer 1
ans is A
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.
answer A
A
Ans A
Hello SAS Guru,
good posting for SAS programming
Ans A
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.
B
A
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
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
Post a Comment