I need to ensure that the header rows of these 6 files are identical before I combine them into one data set.
Code:
%macro getdata(num=,dsn=); proc import datafile="G:\Departments\Research\test scores\SC_ALT\2018\School_District_of_Oconee_County_4604-Grade_&num..csv" out=&dsn dbms=dlm; delimiter=','; guessingrows=all; run; proc contents data=&dsn varnum; title"&dsn."; run; %mend; %getdata(num=3,dsn=gr3); %getdata(num=4,dsn=gr4); %getdata(num=5,dsn=gr5); %getdata(num=6,dsn=gr6); %getdata(num=7,dsn=gr7); %getdata(num=8,dsn=gr8);
... View more