Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Level 2 1 1 . Changing a Variable's Data Type The data set orion.US _ newhire contains information about newly hired employees. Partial orion.US _
Level
Changing a Variable's Data Type
The data set orion.USnewhire contains information about newly hired employees.
Partial orion.USnewhire
tableIDTelephone,BirthdayOSDECOMAYNOVJUN
Partial PROC CONTENTS Output of orion.USnewhire
a Create a new data set from orion.USnewhire.
Name the new data set USconverted.
Remove the embedded hyphens in ID
Convert ID to a numeric value.
Convert Telephone to character and place a hyphen or dash between the third and fourth digits.
Convert Birthday to a SAS date value.
b Print US converted with an appropriate title and use PROC CONTENTS to check the variables
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