Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider the following small data set: Cucumber 50104-A 55 30 195 Cucumber 51789-A 56 30 225 Carrot 50179-A 68 1500 395 Carrot 50872-A 65 1500

Consider the following small data set:

Cucumber 50104-A 55 30 195 Cucumber 51789-A 56 30 225 Carrot 50179-A 68 1500 395 Carrot 50872-A 65 1500 225 Corn 57224-A 75 200 295 Corn 62471-A 80 200 395 Eggplant 52233-A 70 30 225 

Assume that the columns, from left to right, represent two character variable (vegetable name and code) and three numeric variables (days to germination, number of seeds, and price).

  1. Uselist inputto read the data into apermanentSAS data set using aDATALINESstatement. Print the data set.
  2. Create output that displays information about the descriptor portion of your data set. Center your output and set the linesize to no more than 80 characters.

The data setemployees.dat

Download employees.dat

contains the following variables, in order, on a set of fifteen employees in the Scranton branch of the paper company, Dunder Mifflin:

  • Name, employee name
  • Position, employee's position in the company
  • StartDate, employee's start date
  • EndDate, employee's end date
  1. Save the file to a convenient location on your computer, and then without editing the file in anyway read the data from the file into atemporarySAS data set calledemployees. You will probably need to accessSAS Help and Documentation(Links to an external site.)
  2. to learn the appropriate informat to read in the dates. When reading in the data, do what you need to do to read inStartDateandEndDate, but use a relative pointer control to read inPositionand absolute pointer control to read inName. (No output/logs is needed for this problem, just copy and paste the program used).
  3. Print the resulting data set, format both of the date variables to appear as mm/dd/yy (ex: 06/07/1998). 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.

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

Step: 3

blur-text-image

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

Advances In Mathematical Economics Volume 19

Authors: Shigeo Kusuoka, Toru Maruyama

1st Edition

4431554890, 9784431554899

More Books

Students also viewed these Mathematics questions