This question is from the SAS Certification Practice Exam: SAS 9.4 Base Programming Performance-Based Exam (Q 29) via SAS e-learning/vle: The variable Name in the data set Employee has a $CHAR10. format. The variable Name in the data set Sales has a $CHAR15. format. The following SAS program is submitted: data both;
length name $ 20;
merge sales employee;
by id;
run; What is the format for the variable Name in the data set Both? Select one: A. $20 B. $CHAR10 C. $CHAR15 D. $CHAR20 Feedback Your answer (A) is incorrect. The first attribute seen for a variable is the one used in the current data step. Given that the Work.Sales data set is positioned first on the MERGE statement, the variable Name would have a format of $CHAR15. in the new data set Work.Both. The LENGTH statement only gives the variable Name a predefined maximum length. The correct answer is: $CHAR15
... View more