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

Suppose you need to create the variable FullName by concatenating the values

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Accounting Questions!