LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (June 2010)Back to main SPSSX-L pageJoin or leave SPSSX-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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
Comments: To: Ramón López <lopeznomar@gmail.com>
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&oacute;n L&oacute;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&ordm;. 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">&lt;<a moz-do-not-send="true" href="mailto:Art@drkendall.org">Art@drkendall.org</a>&gt;</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, &nbsp;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, &nbsp;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. &nbsp;Move all.asc to the place you want<br> it. &nbsp;Rename it to .txt or just read it in as .asc.<br> <br> How are you using the word raster? &nbsp;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 &nbsp;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> &nbsp;/TYPE=TXT<br> &nbsp;/FILE='G:\*2.txt'<br> &nbsp;/DELCASE=VARIABLES 1<br> &nbsp;/DELIMITERS="\t "<br> &nbsp;/ARRANGEMENT=DELIMITED<br> &nbsp;/FIRSTCASE=1<br> &nbsp;/IMPORTCASE=ALL<br> &nbsp;/VARIABLES=<br> &nbsp;Variable1 F13.3.<br> CACHE.<br> EXECUTE.<br> DATASET NAME DataSet1 WINDOW=FRONT.<br> SAVE OUTFILE='G:\*2.sav'<br> &nbsp;/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


Back to: Top of message | Previous page | Main SPSSX-L page