Announcement

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

  • xteurostat (SSC) to download Eurostat information not working (?)

    Dear all,

    I have worked with xteurostat in the past and I have a nice Do-File which I was hoping to replay whenever needed to get updated information.
    However, apparently the download link at Eurostat that has to be called has changed.

    PHP Code:
    xteurostat gov_10a_main S13 TE MIO_NACisocountrynames g(countryt(yearv(govspdate(yclear
    7
    -zip is installed on Windows.
    file http://ec.europa.eu/eurostat/estat-navtree-portlet-prod/BulkDownloadListing?sort=1&file=data%2Fgov_10a_main.tsv.gz not found
    server says file temporarily redirected to https://ec.europa.eu/eurostat/estat-navtree-portlet-prod/bulkdownloadlisting?sort=1&file
    > =data%2fgov_10a_main.tsv.gz
    r
    (601); 
    Is there any chance I can fix that, or that a fix already exists?

    Thanks so much in advance
    Best
    Johannes

  • #2
    The xteurostat command is a Stata command written by the Stata user Duarte Goncalves (also a member of Statalist) and made available through SSC.

    Perhaps by linking his name above, he will see this topic and provide an update. If not, you could write directly to him at the address given for support in the output of ssc describe xteurostat and ask for his assistance.

    If you are daring, you can solve the problem for yourself with the following technique.
    Code:
    . which xteurostat
    /Users/lisowskiw/Library/Application Support/Stata/ado/plus/x/xteurostat.ado
    
    . doedit "/Users/lisowskiw/Library/Application Support/Stata/ado/plus/x/xteurostat.ado"
    In the do-file editor window that opens, find the copy command and change "http" to "https" and save the changed ado file.
    Code:
    . program drop xteurostat
    
    . xteurostat une_ltu_a, clear
    
    . describe, simple
    time          LTU_Y1574_..  LTU_Y2064_..  VLTU_Y1574..  VLTU_Y1574..  VLTU_Y2064..
    geo           LTU_Y1574_..  LTU_Y2064_..  VLTU_Y1574..  VLTU_Y2064..  VLTU_Y2064..
    LTU_Y1574_..  LTU_Y1574_..  LTU_Y2064_..  VLTU_Y1574..  VLTU_Y2064..  VLTU_Y2064..
    LTU_Y1574_..  LTU_Y1574_..  LTU_Y2064_..  VLTU_Y1574..  VLTU_Y2064..
    LTU_Y1574_..  LTU_Y2064_..  LTU_Y2064_..  VLTU_Y1574..  VLTU_Y2064..
    LTU_Y1574_..  LTU_Y2064_..  LTU_Y2064_..  VLTU_Y1574..  VLTU_Y2064..
    LTU_Y1574_..  LTU_Y2064_..  VLTU_Y1574..  VLTU_Y1574..  VLTU_Y2064..

    Comment


    • #3
      Dear William,

      Thank you, this has been a fantastic and tremendously helpful reply!
      Worked like a charm.

      Many thanks,
      Johannes


      Comment


      • #4
        For future reference by anyone who finds this topic searching for help with xteurostat
        Code:
        doedit "`c(sysdir_plus)'/x/xteurostat.ado"
        accomplishes in a single copyable command what the two commands in post #2 do.

        The problem has been reported to the email address given for the author of xteurostat.

        Comment

        Working...
        X