The FILENAME ZIP access method fails with the message "ERROR: Open failure for (file.zip) during attempt to create local file handle"


When you use the FILENAME ZIP access method to read in a zipped file, you receive the following error message:

ERROR: Open failure for <file.zip> during attempt to create a local file handle.

Here is a list of possible causes:

Complete these steps to debug the error:

  1. Verify that the zipped file can be unzipped outside of SAS.
  2. Use one of the following (or similar) system commands to see details about the zipped file:

An alternative method to using FILENAME ZIP is to use the ZIP/UNZIP command with the FILENAME PIPE statement.

FILENAME X PIPE "unzip '<file>' ";
data _null_;
     infile x;
     input;
     put_infile_;
run;