Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • unzipfile issue

    Hello to all,
    I am trying to unzip a file, "LFSDATA2010-2014.zip" . I am using Stata 14.0. But Stata returned the message
    "cannot open LFSDATA2010-2014.zip or LFSDATA2010-2014.zip.
    zip could not perform unzip"

    I used these Syntax,

    cd "D:\rough"

    unzipfile "LFSDATA2010-2014.zip",replace

    unzipfile "LFSDATA2010-2014.zip"


    Note: The file contains four years data in SPSS format, I mean four sub spss files.

  • #2
    Are you able to unzip the archive some other way? Perhaps it has password protection, or some other problem.

    Comment


    • #3
      Dear William Lisowski,
      Thanks for your reply. Actually the folder was not zipped in standerd format. Therefore I first zipped and then unzipped through the following syntax. and it's worked


      global mydata "C:\Users\Ijaz Ali\Downloads\Documents"

      zipfile "lfs2012-13.sav" "lfs2012-13.sav" "lfs2013-14.sav" "lfs2014-15.sav" , saving("lfsdata.zip")

      unzipfile lfsdata.zip

      Comment

      Working...
      X