Hi Tom, I'm also trying to download a zip file from the web and then read it into EG. The download works but the file size is slightly smaller than what is listed on the website. There are 2 text files in the download. This is the code I'm using to download the file. options mlogic sslcalistloc="/ma/scott/fhlmc/fhlmc.cert"; /* location of certificate file */ filename fhlmc url "https://freddiemac.embs.com/FLoan/Data/historical_data1_Q11999.zip" debug; data _null_; infile fhlmc recfm=n; input; file "/ma/scott/fhlmc/data/historical_data1_Q11999.zip"; put _infile_; run; I get an error if I manually try to unzip the file and when I try to read it directly I get this error. SYMBOLGEN: Macro variable LIB resolves to /ma/scott/fhlmc/data/ SYMBOLGEN: Macro variable AS_OF_QTR_YEAR resolves to Q11999 MPRINT(ORIG): FileName zip Saszipam "/ma/scott/fhlmc/data/historical_data1_Q11999.zip"; MPRINT(ORIG): data origfile; SYMBOLGEN: Macro variable AS_OF_QTR_YEAR resolves to Q11999 MPRINT(ORIG): infile zip(historical_data1_Q11999.txt) dsd dlm='|' missover firstobs=2 lrecl=32767; MPRINT(ORIG): input fico : 8. dt_first_pi : 8. flag_fthb : $1. dt_matr : 8. cd_msa : 8. mi_pct : 8. cnt_units : 8. occpy_sts : $1. cltv : 8. dti : 8. orig_upb : 8. ltv : 8. int_rt : 8. channel : $1. ppmt_pnlty : $1. prod_type : $5. st : $2. prop_type : $2. zipcode : 8. id_loan : $16. loan_purpose : $5. orig_loan_term : 8. cnt_borr : $2. seller_name : $30. servicer_name : $30. ; MPRINT(ORIG): run; 2 The SAS System 09:07 Monday, June 16, 2014 ERROR: The central directory is invalid in /ma/scott/fhlmc/data/historical_data1_Q11999.zip. WARNING: End of file. NOTE: The SAS System stopped processing this step because of errors. WARNING: The data set WORK.ORIGFILE may be incomplete. When this step was stopped there were 0 observations and 25 variables. WARNING: Data set WORK.ORIGFILE was not replaced because this step was stopped. NOTE: DATA statement used (Total process time): real time 0.00 seconds cpu time 0.00 seconds
... View more