Skip to content

Commit

Permalink
add import code
Browse files Browse the repository at this point in the history
  • Loading branch information
hzhao16 committed Apr 10, 2017
1 parent a4a3bcf commit 9f93d4a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
15 changes: 15 additions & 0 deletions Merge_data_SAS_code/Import.sas
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FILENAME REFFILE '/Files/_uploads/ama-master.csv';

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

FILENAME REFFILE '/Files/_uploads/malpractice.csv';

PROC IMPORT DATAFILE=REFFILE
DBMS=CSV
OUT=WORK.Malpractice;
GETNAMES=YES;
RUN;
15 changes: 0 additions & 15 deletions Merge_data_SAS_code/Merge_all.sas
Original file line number Diff line number Diff line change
Expand Up @@ -183,13 +183,7 @@ proc export data=WORK.Merged_Medicare
replace;
run;

FILENAME REFFILE '/Files/_uploads/ama-master.csv';

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

/*Merge merged Medicare with AMA master file by npi*/

Expand All @@ -215,15 +209,6 @@ proc sql;
on Malpractice.npi = Merged_Medicare_with_AMA.npi;
quit;


FILENAME REFFILE '/Files/_uploads/malpractice.csv';

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

/*Add variable Target to the Malpractice dataset*/
data Malpractice;
set Malpractice;
Expand Down

0 comments on commit 9f93d4a

Please sign in to comment.