Question: SAS ON DEMAND SCRIPT Your script should use a conditional statement and print only presidents who are from Ohio. You will then calculate a total

SAS ON DEMAND SCRIPT

Your script should use a conditional statement and print only presidents who are from Ohio. You will then calculate a total number of days for each president from Ohio based on Took office and left office columns.

/* Generated Code (IMPORT) */ /* Source File: USPresidents.csv */ /* Source Path: /home/u72126823/My SAS Files */ /* Code generated on: 1/11/23, 11:03 PM */

%web_drop_table(WORK.IMPORT);

FILENAME REFFILE '/home/u63015712/My SAS Files/USPresidents.csv';

PROC IMPORT DATAFILE=REFFILE DBMS=CSV OUT=WORK.IMPORT; GETNAMES=YES; RUN;

PROC CONTENTS DATA=WORK.IMPORT; RUN;

%web_open_table(WORK.IMPORT);

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!