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
Get step-by-step solutions from verified subject matter experts
