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;