Question

If you put a URL into the file path of SPSS syntax GET DATA /FILE="http:..." it doesn't work. Any suggestions to get the program to call the dataset from the web? Or is this just a program specific limitation?

Was it helpful?

Solution

There is an extension SPSS GETURI DATA available from SPSS that allows you to open up sav, excel, sas or Stata datasets from online.

Otherwise you can't do it directly, but you can use the HOST command to set a prompt to download a file and then open it. Something like below (for my Windows machine after installing wget):

HOST = ['cd "your drive here"','wget http://www.yoururl.com/yourfile.sav'].

And then you should be able to open the file using normal SPSS syntax.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top