Question

1. Consider the following small data set: Kane 20 12 2005 12 25 Ambler 22 12...

1. Consider the following small data set:

Kane   20  12  2005  12  25
Ambler 22  12  2005   8  20
Kane   20  01  2006  13  32
Oakey  32  12  2005  30  50
Oakey  32  01  2006  25  45
Ambler 22  01  2006  15  28

Assume that the columns, from left to right, represent one character variable (town name) and five numeric variables (town number, month, year, low daytime temperature (in degrees F) and high daytime temperature (in degrees F)).

a. Use column input to read the data ino a permanent SAS data set by reading the data instream. Print the data set.

b. Create a temporary SAS data set from the permanent SAS data set created in part (a). Print the data set.

Homework Answers

Answer #1

creat one permanent library in your C drive

to read and write sas datasets.

a. Use column input to read the data ino a permanent SAS data set by reading the data instream. Print the data set.

SAS Code is give below

libname mylib 'C:\My SAS Datasets';

data mylib.ds1;

input town_name $ 1-6 town_no 8-9 month 11-12 year 14-17 low_ temp 19-20 high_temp 22-23;

cards;

Kane   20  12  2005  12  25
Ambler 22  12  2005   8  20
Kane   20  01  2006  13  32
Oakey  32  12  2005  30  50
Oakey  32  01  2006  25  45
Ambler 22  01  2006  15  28

;

run;

proc print data=mylib.ds1;

run;

Solutionb:

Create a temporary SAS data set from the permanent SAS data set created in part (a). Print the data set.

use set statement

SAS Code is given below:

data ds2;

set mylib.ds1;

run;

proc print data=ds2;

run;

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
DSAFGG1234123 Consider the following two sample data sets.               Set 1: 13 25   16   28   20   ...
DSAFGG1234123 Consider the following two sample data sets.               Set 1: 13 25   16   28   20                      Set 2: 2 7       0     8      5 a.Calculate the coefficient of variation for each data set. b.Which data set has more variability?
Consider the following data from a random sample: 23 12 26 14 20 25 14 11...
Consider the following data from a random sample: 23 12 26 14 20 25 14 11 21 14 25 21 22 21 8 19 17 22 17 16 a.) Construct a stem-and-leaf plot and specify the five-number index (min, Q1, Q2, Q3, & max) b.) Compute the mean and the standard deviation c.) Find a 95% confidence interval for the population mean.
question 1: The following data give the time (in minutes) that each of 20 students waited...
question 1: The following data give the time (in minutes) that each of 20 students waited in line at their bookstore to pay for their textbooks in the beginning of Spring 2012 semester. 14 35 23 23 12 46 41 51 22 37 22 34 14 46 32 20 41 36 27 25 Construct a ranked stem-and-leaf display for the data. Question 2: Following are the temperatures (in   ∘F) observed during eight wintry days in a midwestern city (sample):                             23⁢    ...
1. Previous research states, "no evidence currently exists supporting or refuting the use of electric fans...
1. Previous research states, "no evidence currently exists supporting or refuting the use of electric fans during heat waves" in terms of mortality and illness. Counterintuitively, Public Health guidelines suggest not using fans during hot weather, with some research reporting the potential of fans accelerating body heating. You decide to research further this seemingly contradictory guidance, hypothesizing that the true population average core body temperature amidst higher ambient temperature and humidity levels while using an electric fan is greater than...
/* myCompany.SQL Introduction to SQL Script file for ORACLE DBMS This script file creates the following...
/* myCompany.SQL Introduction to SQL Script file for ORACLE DBMS This script file creates the following tables: VENDOR, PRODUCT, CUSTOMER, INVOICE, LINE EMPLOYEE and loads the default data rows */ set echo on; set serveroutput on; select systimestamp from dual; show user; ALTER SESSION SET NLS_DATE_FORMAT = 'DD-MON-YYYY'; DROP TABLE LINE CASCADE CONSTRAINTS; DROP TABLE INVOICE CASCADE CONSTRAINTS; DROP TABLE CUSTOMER CASCADE CONSTRAINTS; DROP TABLE PRODUCT CASCADE CONSTRAINTS; DROP TABLE VENDOR CASCADE CONSTRAINTS; DROP TABLE EMPLOYEE CASCADE CONSTRAINTS; CREATE TABLE...
/* myCompany.SQL Introduction to SQL Script file for ORACLE DBMS This script file creates the following...
/* myCompany.SQL Introduction to SQL Script file for ORACLE DBMS This script file creates the following tables: VENDOR, PRODUCT, CUSTOMER, INVOICE, LINE EMPLOYEE and loads the default data rows */ set echo on; set serveroutput on; select systimestamp from dual; show user; ALTER SESSION SET NLS_DATE_FORMAT = 'DD-MON-YYYY'; DROP TABLE LINE CASCADE CONSTRAINTS; DROP TABLE INVOICE CASCADE CONSTRAINTS; DROP TABLE CUSTOMER CASCADE CONSTRAINTS; DROP TABLE PRODUCT CASCADE CONSTRAINTS; DROP TABLE VENDOR CASCADE CONSTRAINTS; DROP TABLE EMPLOYEE CASCADE CONSTRAINTS; CREATE TABLE...
Please answer the following Case analysis questions 1-How is New Balance performing compared to its primary...
Please answer the following Case analysis questions 1-How is New Balance performing compared to its primary rivals? How will the acquisition of Reebok by Adidas impact the structure of the athletic shoe industry? Is this likely to be favorable or unfavorable for New Balance? 2- What issues does New Balance management need to address? 3-What recommendations would you make to New Balance Management? What does New Balance need to do to continue to be successful? Should management continue to invest...
What tools could AA leaders have used to increase their awareness of internal and external issues?...
What tools could AA leaders have used to increase their awareness of internal and external issues? ???ALASKA AIRLINES: NAVIGATING CHANGE In the autumn of 2007, Alaska Airlines executives adjourned at the end of a long and stressful day in the midst of a multi-day strategic planning session. Most headed outside to relax, unwind and enjoy a bonfire on the shore of Semiahmoo Spit, outside the meeting venue in Blaine, a seaport town in northwest Washington state. Meanwhile, several members of...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT