Question: Suppose you need to create the variable FullName by concatenating the values of Fname and Lname. Name is in the retail.maillist data set recorded as
Suppose you need to create the variable FullName by concatenating the values of Fname and Lname. Name is in the retail.maillist data set recorded as lastname,firstname middlename. The length of the name is 40. What is the length of the Fullname for the following program? Hint: Review the default lengths of functions modifying character variables. SAS 9.4

data work.maillist; set retail.maillist; fname = trim (scan (name, 2)); lname = trim (scan (name, 1)); fullname=trim(fname) ||' '||lname; run; A. 80 B. 200 C. 201 D. 81
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
