Most of the files are "zipcode_xxxx.cpt" with some of the files including a version number i.e. "zipcode_xxxx_vx.cpt". The first two x's are jan, apr, jul, oct and the last two xx's are dates 11,12,13,14, etc. I had a similar issue when the downloaded files were in .zip format. I used R to unzip the files into a directory of my choosing. #1.1: Unzip files
#A. Grab directory of zip files
file.name.zip <- dir(raw_data_path, pattern=".zip")
#B. Loop through directory
for (zzz in file.name.zip) {
print(zzz)
unzip(paste(raw_data_path, zzz, sep="\\"),exdir=new_data_path)
} Does SAS have a function, similar to dir(raw_data_path, pattern=".zip"), that creates a list of values found in a directory given a file pattern? For instance I would want to replace the previous function ".zip" with ".cpt".
... View more