Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need help for the code to for this question in SAS Create a new data set (NUMS) containing all four variables (you can use

I need help for the code to for this question in SAS

image text in transcribed
Create a new data set (NUMS) containing all four variables (you can use a new name for A and B) with only numeric variables. 10 Run the following program to create a SAS data set NUM_CHAR. Using this data set create a new SAS data set (CORRECT) as follows: X, Y, and Z are numeric variables (yes you have to use the same variable names. HINT: Swap and DROP); DATE is a real SAS date (i.e., the number of days from January 1, 1960, format it with DATE9.); NUMERAL is a character variable (make the length 8); CHAR_DATE is a character variable with the value of DOB (but as a character string in the MMDDYY10. format). DATA NUM CHAR; INPUT X $ Y $ Z $ DATE : $10. NUMERAL DOB : DATE9 . ; FORMAT DOB MMDDYY10. ; DATALINES ; 10 20 30 10/21/1946 123 09SEP2004 1 2 3 11/11/2004 999 01JAN1960

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Discrete Mathematics With Applications

Authors: Susanna S Epp

5th Edition

0357035283, 9780357035283

More Books

Students also viewed these Mathematics questions

Question

Give the comparison of outdoor and indoor substations.

Answered: 1 week ago