the words NOTE, SUGGESTION, and ERROR. 2. DATA Step Merge

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Answer 2 and 3.

thx

The SAS log contains messages starting with
r.
the words NOTE, SUGGESTION,
and ERROR.
2. DATA Step Merge
Below is the input data set work.employees:
VIEWTABLE: Work.Employees
name
id
1
Troy
12649
2
Melissa
38901
3
Larry
Tonya
49255
4
56391
Below is the input data set work.salaries:
VIEWTABLE: Work.Salaries
idnum
salary
52000
1
12649
2
49255
75000
3
56391
89000
4
88376
66000
Below is the output data set work.empsal:
VIEWTABLE: Work.Empsal
idnum
salary
12649 52000
name
1
Troy
Larry
Tonya
2
49255
75000
3
56391
89000
Add the appropriate statement to the following program to create the
output data set based on the input data sets:
data empsal;
by idnum;
if emp=1 and sal=1;
run;
3. Column, Formatted, and List Input
Below is the raw data file kids7.dat:
-------10---|----20---|----30---|----41---|
15$1,322!Tim!Tammy
Michael McMurray 12$532!Mary
14$1,000!Jim!John!Joyce
Tina
Smith
Jackie Jones
Below is the desired output data set, work.kids7:
VIEWTABLE: Work.Kids7
first
last
age savings sibling1 sibling2 sibling3
1
Tina
Smith
15
1322 Tim
Tammy
2
Michael McMurray
12
532 Mary
3
Jackie
Jones
14
1000 Jim
John
Joyce
Complete the following program based on the raw data file kids7.dat and
the desired output data set work.kids7. Use column input for first,
last, and age. Use list input for savings, sibling1, sibling2, and
sibling3.
data work.kids7;
infile 'kids7.dat'
input
Transcribed Image Text:The SAS log contains messages starting with r. the words NOTE, SUGGESTION, and ERROR. 2. DATA Step Merge Below is the input data set work.employees: VIEWTABLE: Work.Employees name id 1 Troy 12649 2 Melissa 38901 3 Larry Tonya 49255 4 56391 Below is the input data set work.salaries: VIEWTABLE: Work.Salaries idnum salary 52000 1 12649 2 49255 75000 3 56391 89000 4 88376 66000 Below is the output data set work.empsal: VIEWTABLE: Work.Empsal idnum salary 12649 52000 name 1 Troy Larry Tonya 2 49255 75000 3 56391 89000 Add the appropriate statement to the following program to create the output data set based on the input data sets: data empsal; by idnum; if emp=1 and sal=1; run; 3. Column, Formatted, and List Input Below is the raw data file kids7.dat: -------10---|----20---|----30---|----41---| 15$1,322!Tim!Tammy Michael McMurray 12$532!Mary 14$1,000!Jim!John!Joyce Tina Smith Jackie Jones Below is the desired output data set, work.kids7: VIEWTABLE: Work.Kids7 first last age savings sibling1 sibling2 sibling3 1 Tina Smith 15 1322 Tim Tammy 2 Michael McMurray 12 532 Mary 3 Jackie Jones 14 1000 Jim John Joyce Complete the following program based on the raw data file kids7.dat and the desired output data set work.kids7. Use column input for first, last, and age. Use list input for savings, sibling1, sibling2, and sibling3. data work.kids7; infile 'kids7.dat' input
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY