--------10-------20-------30
Printing___750
The following SAS program is submitted:
data bonus;
infile 'file-specification';
input dept $ 1 - 11 number 13 - 15;
run;
Which one of the following SAS statements completes the program and results in a value of 'Printing750' for the DEPARTMENT
variable?
A. department = trim(dept) number;
B. department = dept input(number,3.);
C. department = trim(dept) || put(number,3.);
D. department = input(dept,11.) || input(number,3.);
Click Comment link to get answer
The following SAS program is submitted:
data bonus;
infile 'file-specification';
input dept $ 1 - 11 number 13 - 15;
run;
Which one of the following SAS statements completes the program and results in a value of 'Printing750' for the DEPARTMENT
variable?
A. department = trim(dept) number;
B. department = dept input(number,3.);
C. department = trim(dept) || put(number,3.);
D. department = input(dept,11.) || input(number,3.);
Click Comment link to get answer
C
ReplyDeleteC
ReplyDeletecomment on this plz.
ReplyDeleteC
ReplyDeleteThe input statement reads the variable dept using 11 bytes. The value of dept (Department) consists of 8 bytes therefore 3 trailing blanks are present in the value of dept which need to be trimmed out using the trim function. This is concatenated to the put function which converts numeric variables to character variables using the supplied format (3.) Hope this helps!
ReplyDeleteP.S. I am taking the exam tomorrow! Wish me luck ;)
Really good explanation
DeleteHi keyreal.. congrats on passing SAS Base.. Could you please send the explanations for the dumps if you have, to samantha6may@gmail.com
DeleteThanks!
Hi, i am also preparing for the exam, can you please send me materials of question answers on raor323@gmail.com
DeleteI got certified!!! :)
ReplyDeleteHi, i am also preparing for the exam, can you please help me out by sending materials of question answers on riyashah91289@gmail.com
DeleteHi When did you appear for the exam ??
DeleteCan you also send me the q and A on namanpatel5887@gmail.com. my exam is on 15. thanx.
DeleteHello keyreal,
Deletei am also preparing for the BASE SAS exam, can you please help me out by sending materials of question answers on chetanahire01.429@gmail.com
send me questions and answers for Base sas exam preparation
DeleteGoutam.hanje@gmail.com
I will get certified soon.
ReplyDeleteHello keyreal,
ReplyDeleteWhere are you living? Did you get a job after your certification? Please, let me know.
Thanks,
Regards,
congratulations to those who are certified and those who are actively trying...this site and your comments are so helpful :)
ReplyDeleteI am planning to give certification next week.....but few answers are conflicting...are these question enough or are there any other resources...
ReplyDeletethis should be enough
ReplyDeleteHi Keyreal,
ReplyDeleteCongratulations for your certificationtest. I am also taking the test on next week. Would you plz suggest me what I have to read. These question are enough to take test or do I need to study another topics. Plz send me reply soon and some dumps you write in exam. My e-mail id is jayananditha@gmail.com.
Thank you very much for your help.
Yes, I rescheduled for July 5th other wise I would be in exam hall at this time tomorrow. Can not afford to pay extra 180.
ReplyDeleteif c is true there must be 4 blanks! otherwise no answer will fit
ReplyDeleteWho can explain the reason why choose C?
ReplyDeletePrinting750' to come from Printing____750. Out of choices given below why C is the answer is becoz all that ______needs to be removed so can use TRim function but taht aone will not help as number 750 is num and num values are Right aligned so if taht is converted to char it will get L aligned and come close to word Printing..
DeleteA. department = trim(dept) number;
B. department = dept input(number,3.);
C. department = trim(dept) || put(number,3.
Best explaination.
DeleteThanks
is these questions enough to give the exam?? plz let me know,i am also planning to give exam
ReplyDeletemy id is sutripti.datta@gmail.com
Recall, we use the put function when we need to convert numeric values to character values.
ReplyDeleteIn this case it's C.
ReplyDeleteHowever, there is an ALTERNATE question going around where it is asking for "Printing 750" with a space in between. They also have similar, but different, possible answers.
A. department = trim(dept)||number;
B. department = dept||input(number,3.);
C. department = trim(dept) || put(number,3.);
D. department = input(dept,11.) || input(number,3.);
In this case, A would be the correct answer. Because of the ||, SAS will automatically try to convert numbers into characters. In this process, an extra space is added to the front. I don't know why, but it does (I tested it).
Hopefully this will help people who have the altered question.
You just make me figuring out my question. I was wondering why I have to do the formatted for that number variable. There is no space between "Printing" "750". They must be the same type of value.
DeleteC
ReplyDeletedoes it cost extra for rescheduling the SAS BASE EXAM??
ReplyDeleteHello people, I think C is the answer, but there is a problem here: the original data needs one more space (red underscores part) to input value (750) correctly for variable NUMBER. Present data will only input 50 instead of 750, so the final concatenation result will be 'Printing_50' (underscore is a space), not 'Printing750'. Am I right?
ReplyDeletecan any one explain why this question answer is C. why we change numeric value in to character value and also explain trim function.
ReplyDeleteHi Can anyone help me with Sas base certifiaction exam. I am having my exam after two days. Are the material here enough to clear the test. Please send me actual questions if any one have it on asadaleem203@gmail.com
ReplyDeletehi guys am writing the SAS base next week. I will be glad if you can shared some materials u used in preparing for your exams with me.
ReplyDeletethank you
email. bbortey9@gmail.com
Deletecan someone explain, there is only one space after printing, so the numeric value starts from 11.. but infile reads only from 13.. and also dept will read till 11 inc;iding numeric
ReplyDeleteI want to give base sas exam and currently going through the dumps.. can anybody send the explanations on antara27@gmail.com. why there are no explanations given? the answers are confusing
ReplyDeletekindly send me the explainations for dump if anyone has, planning to give the exam, coolstuff2730@gmail.com
ReplyDelete