Date: Wed, 21 Dec 2011 13:03:33 -0800
Reply-To: "Pirritano, Matthew" <MPirritano@ochca.com>
Sender: "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From: "Pirritano, Matthew" <MPirritano@ochca.com>
Subject: Re: FTP Data Extraction and Automation via Syntax + Finding SPSS
Help Manuals Online.
In-Reply-To: <CAPjhJmUzK+MVCg=0ykGzBCyoA3cdqQAAc+uomwFOxs3eacRmLw@mail.gmail.com>
Content-Type: multipart/alternative;
Justin,
1. It looks like all the manuals are posted on the ibm site here:
https://www-304.ibm.com/support/docview.wss?uid=swg27021213#en
2. What ftp client are you using? Chances are there is a way to
automate the uploads. I use ws_ftp and have a simple batch statement
that uploads the file. I then have windows scheduler run this batch
statement regularly. I have it set to run at 6am every day. This is what
my batch file looks like with generic filenames. The last line renames
the file with the current date. 'h' is just what the network (local)
drive was labeled in this case:
wsftppro.exe -s ftpConnectionName:\remote folder path\remote filename
-d "local:h:/local path/local filename"
cd /d h:\go to directory where file you just loaded lives
ren filename filename_%date:~10,4%%date:~4,2%%date:~7,2%.xls
3. I've also scheduled syntax to run in a python wrapper using the
windows scheduler. So you could schedule the ftp inload, allow for
sufficient time for the file to be loaded, and then schedule the python
file with the spss syntax to run. I would imagine that you can run any
ftp client like this.
Happy holidays!
Matt
Matthew Pirritano, Ph.D.
Research Analyst IV
Medical Services Initiative (MSI)
Orange County Health Care Agency
(714) 568-5648
________________________________
From: SPSSX(r) Discussion [mailto:SPSSX-L@LISTSERV.UGA.EDU] On Behalf Of
J. R. Carroll
Sent: Wednesday, December 21, 2011 12:30 PM
To: SPSSX-L@LISTSERV.UGA.EDU
Subject: FTP Data Extraction and Automation via Syntax + Finding SPSS
Help Manuals Online.
All,
Tried searching the web but my searches turned up nothing relevant. I
am trying to find a way to automate some monthly analyses without having
to go through some intermediate steps.
Question 1: Currently, my team has to log into an FTP site, manually
select and download a specific file on the server and download it to
their own HDD, then run the SPSS script necessary to analyze the data.
We are looking into ways that we might just link directly to the FTP
file via syntax (e.g. some sort of "open" syntax command that allows
FTP). Does SPSS syntax support this? If not, are there alternatives
like if I wrap the syntax into a python layer (using a module like
sockets or twister for packet management or some other FTP module -
haven't really looked into this yet)? The file is either a flat/text
file or a CSV and prepared by a client, so we do not have an ODBC
connection option.
Question 2: I couldn't "easily" find the SPSS help manuals online (I
found some old archived SPSS help manuals on a few personal sites). I
also checked the SPSS/IBM wiki but nothing jumped out at me.
Specifically I was looking for the PDF's that come packaged with SPSS
(syntax ref, programming ref/python, etc); the PC I am on doesn't have
SPSS installed on it right now. Am I blind and just totally glazed over
it? Or is not available for d/w? Whatever the case, can someone
suggest a solution to getting access to the manuals while I am away from
a PC that has SPSS?
I've already tried: google, IBM/SPSS Forums, old syntax ref manuals,
and a few other odds and ends for both questions.
Thanks,
----
<http://jrcresearch.net/blog/wp-content/uploads/2010/07/sig.gif>
J. R. Carroll
Researcher for Hurtz Labs
Instructor at California State University, Sacramento
Research Methods, Test Development, and Statistics
www.jrcresearch.net <http://www.jrcresearch.net/>
Cell: (916) 628-4204
Email: jrcarroll@jrcresearch.net
jrcarroll@hurtzlab.com
jrc.csus@gmail.com
[text/html]