forked from owenjchen/sas_code
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpf02d01.sas
More file actions
27 lines (24 loc) · 1.14 KB
/
Copy pathpf02d01.sas
File metadata and controls
27 lines (24 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/*********************************************************************/
/* This program uses an INFILE statement to read a raw data file. */
/* The INFILE statement includes a full path for Microsoft Windows. */
/* */
/* For UNIX or SAS onDemand: */
/* Replace the INFILE statement with the following statement: */
/* infile "&path/newemps.csv" dlm=','; */
/* */
/* For z/OS: */
/* Replace the INFILE statement with the following statement: */
/* infile "&path..rawdata(newemps)" dlm=','; */
/*********************************************************************/
data work.newsalesemps;
length First_Name $ 12 Last_Name $ 18
Job_Title $ 25;
infile "&path/newemps.csv" dlm=',';
input First_Name $ Last_Name $
Job_Title $ Salary;
run;
proc print data=work.newsalesemps;
run;
proc means data=work.newsalesemps;
var Salary;
run;