
Proc contents noprint data=covid._all_ out=meta(where=(memname like 'DAY_%')) *call execute ('%nrstr(' || trim (source_code) || ')') * uncomment this line to import each data file */ Source_code = tranwrd (source_code, "#out#", trim(out)) Source_code = tranwrd (source_code, "#filename#", trim(filename)) Source_code = tranwrd (template, "#path#", "&download_path")

'PROC IMPORT file="#path#\#filename#" replace out=#out# dbms=csv ' || * NOTE: Starting FIPS data first starts appearing after a few hundred rows. * codegen and execute the PROC IMPORT steps needed to read each csv file downloaded įilename csvlist pipe "dir /b ""&download_path""" * uncomment this block to download the (data) files from the repository subfolder %let os_command = svn checkout &svn_url "&download_path" %let svn_url = %sysfunc(tranwrd(&repo_subdir_url, tree/master, trunk)) %let download_path = &covid_data_root\covid %let rc = %sysfunc(dcreate(covid,&covid_data_root)) * COVID-19 Data Repository by the Center for Systems Science and Engineering (CSSE) at Johns Hopkins University * use svn to download all files in a subfolder of a git repository Make some series plots of a response by date from stacked imported downloaded data.
HOW TO DOWNLOAD SAS DATASET ARCHIVE

The listing data contains the download_url for each csv file. The list of the files in the repository can be obtain as json from url Proc HTTP does not run javascript, so will not be able to download the ultimate response which is the constructed zip file, thus you get the 404 message.
HOW TO DOWNLOAD SAS DATASET ZIP FILE
The url when viewed in a browser is using javascript in the browser to construct a zip file that is automatically downloaded.
