Question: 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:

Run the following program to create a SAS data set NUM_CHAR. Using 

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

3.37 Rating (153 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Heres the SAS code that you can run to create the data set CORRECT based on the NUMCHAR data ... View full answer

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 Programming Questions!