I want to create a simple wrapper for use in order to open files compressed using gzip directly. (I am aware of gzipuse but it says that it does not work on windows)
Here is what I have:
When I call
I receive the error
I studied the documentation on this, but I cannot figure out why it's not working. Any ideas on what I am doing wrong? I do not want to use anything() in the syntax in order to keep the wrapper syntax fully identical to use.
Here is what I have:
Code:
program define usegz version 15 syntax [varlist] [if] [in] using tempfile temp_dta shell gzip --decompress --stdout `using' > `temp_dta' use `varlist' `if' `in' `temp_dta' end
Code:
usegz "some/gz/dta/file.gz"
factor-variable and time-series operators not allowed
Comment