Question
can someone please tell me what Im doing wrong in SAS 9.4...The data set rats contains the following variables, in order, on a set of
can someone please tell me what Im doing wrong in SAS 9.4...The data set rats contains the following variables, in order, on a set of eight rats:
rat, rat number
dob, date of birth
disease, date of disease
death, date of death
group, treatment group
Save the file to a convenient location on your computer, and then without editing the data in any way read the ascii file into a temporary SAS data set called rats. You will probably need to access SAS Help and Documentation to learn the appropriate informat to read in the dates. When reading in the data, do what you need to do to read in rat and group, but use a relative pointer control to read in dob and absolute pointer controls to read in disease and death.
Print the resulting data set, formatting the variables as necessary so that when printed they make sense. Set your page size to 56, your line size to 78, center the output, and suppress the printing of the date and time that the output was created.
Data Rats input rat 1. +2 dob date9 +2 disease date9. +2 death mumddyy10. C32 group 1. DATA LINES: 1 23MAY2006 23JUN2006 06/28/06 A 2 21MAY2006 27JUN2006 07/05/06 A 3 23MAY2006 25JUN2006 07/01/06 A 4 27 MAY 2006 07JUL2006 07/15/06 A 5 22MAY2006 29JUN2006 07/22/06 B 6 26MAY2006 03JUL2006 08/02/06 B 7 24MAY 1990 01JUL2006 07/29/06 B 8 29MAY2006 15JUL2006 08/18/06 B RUN: PROC PRINT data rats; RUNStep 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