Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

image text in transcribed

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; RUN

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_2

Step: 3

blur-text-image_3

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

Contemporary Issues In Database Design And Information Systems Development

Authors: Keng Siau

1st Edition

1599042894, 978-1599042893

Students also viewed these Databases questions