Date: Wed, 30 Jun 2010 09:32:42 -0400
Reply-To: Art@DrKendall.org
Sender: "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From: Art Kendall <Art@DrKendall.org>
Organization: Social Research Consultants
Subject: Re: Need help with SPSS scripting
In-Reply-To: <AANLkTimVZo11q8992zdpnmPyBJ5MeQOuq6zUjEKUUJlN@mail.gmail.com>
Content-type: text/html; charset=ISO-8859-1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Similar questions have appeared on this list. I suggest you check the
archives from this list at <br>
<a class="moz-txt-link-freetext" href="http://listserv.uga.edu/archives/spssx-l.html">http://listserv.uga.edu/archives/spssx-l.html</a><br>
<br>
There should also be info there on "devcentral".<br>
<br>
Art<br>
<br>
On 6/28/2010 1:11 PM, Ramón López wrote:
<blockquote
cite="mid:AANLkTimVZo11q8992zdpnmPyBJ5MeQOuq6zUjEKUUJlN@mail.gmail.com"
type="cite">Hello Sirs:<br>
Thanks you very much for you support in advance.<br>
Please could you indicate me a good references to learn to use Python
with SPSS?<br>
Best Regards<br>
<br>
<span style="color: black;">
<div dir="ltr">
<div>Ingº. Ramon Lopez
(58)-412-8318409<br>
</div>
<div
style="padding: 10px 0pt 5px; font-family: arial,sans-serif; font-size: 13.3px;"><span
style="color: gray;">Chat</span> <img moz-do-not-send="true"
src="http://www.images.wisestamp.com/skype.png"
style="vertical-align: middle; padding-right: 5px;" alt="" width="16"
height="16"><font
style="color: gray; font-weight: bold; font-size: 9pt;">Skype: </font><font
style="vertical-align: middle;">lopeznomar</font></div>
<div
style="padding: 5px 0pt; font-family: arial,sans-serif; font-size: 13.3px;"><span
style="color: gray;">Contactame</span> <a moz-do-not-send="true"
href="www.twitter.com/lopeznomar"
style="padding: 0pt 2px; color: blue; font-size: 10pt;"><img
moz-do-not-send="true"
src="http://www.images.wisestamp.com/twitter.png"
style="padding-right: 3px; padding-bottom: 5px; vertical-align: middle;"
width="16" border="0" height="16"><span
style="color: blue; font-size: 10pt; text-decoration: underline;">Twitter</span></a></div>
</div>
</span><br>
<br>
<div class="gmail_quote">2010/6/28 Art Kendall <span dir="ltr"><<a
moz-do-not-send="true" href="mailto:Art@drkendall.org">Art@drkendall.org</a>></span><br>
<blockquote class="gmail_quote"
style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">if
there is an identifier in each .txt file that tells you which .txt<br>
file it is, or<br>
if this is a highly unusual situation, and you don't need to go back to<br>
the .txt data during data prep,<br>
you can use the copy command from your OS.<br>
For example, in Windows put all of the files in one folder. Go to the<br>
command prompt. Navigate to the folder.<br>
In teh command prompt window type copy *.txt all.asc.<br>
Exit the command prompt.<br>
Use explorer to go to the folder. Move all.asc to the place you want<br>
it. Rename it to .txt or just read it in as .asc.<br>
<br>
How are you using the word raster? I would usually associate it with<br>
binary or jpeg type data.<br>
<br>
Scripts are now considered by many to be obsolete, you may want to stick<br>
with syntax and use Python to generlize.<br>
<br>
If this does not meet your needs please repost and ask specifically<br>
about using python.<br>
<font color="#888888"><br>
Art Kendall<br>
Social Research Consultants</font>
<div>
<div class="h5"><br>
<br>
On 6/28/2010 10:31 AM, Malanding Jaiteh wrote:<br>
<blockquote class="gmail_quote"
style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I am trying to import several 1000 ascii (*.TXT ) raster files into<br>
into single variable SPSS files (syntax below for 1 file). I am new to<br>
SPSS scripting so I am looking for samples (basic or vb) that I can<br>
learn from?<br>
<br>
Thanks,<br>
Malanding Jaiteh<br>
<br>
<br>
GET DATA<br>
/TYPE=TXT<br>
/FILE='G:\*2.txt'<br>
/DELCASE=VARIABLES 1<br>
/DELIMITERS="\t "<br>
/ARRANGEMENT=DELIMITED<br>
/FIRSTCASE=1<br>
/IMPORTCASE=ALL<br>
/VARIABLES=<br>
Variable1 F13.3.<br>
CACHE.<br>
EXECUTE.<br>
DATASET NAME DataSet1 WINDOW=FRONT.<br>
SAVE OUTFILE='G:\*2.sav'<br>
/COMPRESSED.<br>
<br>
=====================<br>
To manage your subscription to SPSSX-L, send a message to<br>
<a moz-do-not-send="true" href="mailto:LISTSERV@LISTSERV.UGA.EDU"
target="_blank">LISTSERV@LISTSERV.UGA.EDU</a> (not to SPSSX-L), with
no body text except the<br>
command. To leave the list, send the command<br>
SIGNOFF SPSSX-L<br>
For a list of commands to manage subscriptions, send the command<br>
INFO REFCARD<br>
<br>
</blockquote>
<br>
=====================<br>
To manage your subscription to SPSSX-L, send a message to<br>
<a moz-do-not-send="true" href="mailto:LISTSERV@LISTSERV.UGA.EDU"
target="_blank">LISTSERV@LISTSERV.UGA.EDU</a> (not to SPSSX-L), with
no body text except the<br>
command. To leave the list, send the command<br>
SIGNOFF SPSSX-L<br>
For a list of commands to manage subscriptions, send the command<br>
INFO REFCARD<br>
</div>
</div>
</blockquote>
</div>
<br>
</blockquote>
</body>
</html>
=====================
To manage your subscription to SPSSX-L, send a message to
LISTSERV@LISTSERV.UGA.EDU (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD
|