From 9f93d4aff409b0dd0aa5e47e93ea43fea736704a Mon Sep 17 00:00:00 2001 From: Han Zhao Date: Mon, 10 Apr 2017 11:54:39 -0400 Subject: [PATCH] add import code --- Merge_data_SAS_code/Import.sas | 15 +++++++++++++++ Merge_data_SAS_code/Merge_all.sas | 15 --------------- 2 files changed, 15 insertions(+), 15 deletions(-) create mode 100644 Merge_data_SAS_code/Import.sas diff --git a/Merge_data_SAS_code/Import.sas b/Merge_data_SAS_code/Import.sas new file mode 100644 index 0000000..cd4c197 --- /dev/null +++ b/Merge_data_SAS_code/Import.sas @@ -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; \ No newline at end of file diff --git a/Merge_data_SAS_code/Merge_all.sas b/Merge_data_SAS_code/Merge_all.sas index f117cf2..f749836 100755 --- a/Merge_data_SAS_code/Merge_all.sas +++ b/Merge_data_SAS_code/Merge_all.sas @@ -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*/ @@ -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;