Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zipfile function call fails to name files #1

Open
thodurfee opened this issue Jul 3, 2017 · 0 comments
Open

zipfile function call fails to name files #1

thodurfee opened this issue Jul 3, 2017 · 0 comments

Comments

@thodurfee
Copy link

Running STATA SE 14.2

Line 253 of "state_mw.do" when run as is generates the following error:

specify at least one file or folder to include in the zip file
r(198);

The following replacement seems to fix and allow for the whole file to run without error:
zipfile ${exports}mw_state_annual.dta ${exports}mw_state_quarterly.dta ${exports}mw_state_monthly.dta ${exports}mw_state_daily.dta ${exports}mw_state_changes.dta, saving(${exports}mw_state_stata.zip, replace)

The removal calls in lines 255 - 259 also require ${exports} appended to each name

A similar fix is needed for line 263 and onward

Note: My first thought was that I had a space somewhere in my directory path, but I didn't. My version of STATA doesn't naturally parse !cp or !mv. I added a new line to save these files elsewhere as a workaround, I'm not familiar enough with these calls to suggest fixes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant