Answered step by step
Verified Expert Solution
Question
1 Approved Answer
(30 pts) Continue to use the salaries.xlsx data file, and we will practice using character functions in SQL. Use just one single PROC SQL step
(30 pts) Continue to use the salaries.xlsxdata file, and we will practice using character functions in SQL. Use just one single PROC SQL step in SAS for creating a new data table (call it M8_Salaries) and add the following variables:
- The first name of the employee. Call it firstname with a length of 25.
- The last name of theemployee. Call itlastname with a length of 25.
- Using the calculated variablesfirstnameandlastname as computed above, create a new full name by concatenating thefirstname, one space, and thelastname.Assign an appropriate length. Use thestripfunction to remove leading and trailing blanks.
- Using the variablesfirstnameandlastnamecomputed above, create theemployee's name in the form first initial, a period, one space, UPPER CASElast name. Call it filast and assign an appropriate length. There must be no leading blanks.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started