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 (December 1997)Back to main SPSSX-L pageJoin or leave SPSSX-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Mon, 22 Dec 1997 12:10:36 GMT
Reply-To:   John Hendrickx <J.Hendrickx@MAW.KUN.NL>
Sender:   "SPSSX(r) Discussion" <SPSSX-L@UGA.CC.UGA.EDU>
From:   John Hendrickx <J.Hendrickx@MAW.KUN.NL>
Organization:   University of Nijmegen
Subject:   Re: Conversion to Windows - Period.the [01/01]

I've attached a REXX macro that will terminate SPSS files (add a period at the end of each command). It works under CMS XEDIT and under THE, a freeware XEDIT/KEDIT clone. It should work under KEDIT as well, but I haven't tried it. THE is available for UNIX and DOS and will run in 32 bit mode under WIN95. It's a very powerful editor, I'd recommend it. See for further information.

As long as the syntax files are properly terminated and the input/output statements have been appropriately modified, they should run fine under SPSS for Windows.

In article <>, wrote: >James Carvalho wrote: > >>Under SPSS UNIX, you will need to convert your data files from the >>native SPSS format to an SPSS portable format. Then transfer them >>in ASCII mode to your Windows machine. The portable files can now be >>opened by SPSS for Windows. Hope this helps. > >I have a similar problem. I have some SPSS files in the following >format: > > F_Name.sps > F_Name.dat > F_Name.exp > >As far as I understand it, I am meant to take the SPSS Syntax file >(F_Name.sps) and run it in SPSS to read the data. I have one single >indicator that the syntax file was written for Unix as the path to the >the .dat file is a Unix path. Now, the problem is that I do not have >access to SPSS on Unix. I tried running the Syntax File in Windows >SPSS (after changing the file paths to Windows) but this gave me a >huge number of syntax errors. Is there a utility that will change the >syntax file to Windows format? Do you know of any other possibility to >read the data? Any help would be greatly appreciated. > >Hans > > >>-------------------- Original message ----------------------------- >>Date: Wed, 17 Dec 1997 14:30:54 EST >>From: Tom Madden <MADDENT@DARLA.BADM.SC.EDU> >>Subject: Conversion to windows >> >>Is it possible to run spss files created for UNIX in windows? >> >>I would appreciate any advice on converting the files >> >>Tom Madden > > /* "PERIOD.THE"/"PERIOD XEDIT A" */ /* terminate lines in an SPSS program with an period */ /* By John Hendrickx <> */ /* Department of Sociology, Nijmegen University, The Netherlands */ /* For use in XEDIT under VM/CMS */ /* or in THE under (protected mode) DOS, Windows, OS/2 */ /* and Unix systems that support REXX macros */ /* See <> for info on THE */ trace o "SET AUTOSAVE OFF" "SET LINEND OFF" "LOCATE :1" pending=0 "extract /size" do i=1 to size.1 "extract /curline/length" if substr(curline.3,1,1)^=' ' | pending=1 then do "DOWN 1" "extract /curline/length" content=length(strip(curline.3)) frstchar=substr(curline.3,1,1) nonblnk=substr(strip(curline.3),1,2) if content=0 | frstchar^=' ' | nonblnk='/*' then do call punct pending=0 end else pending=1 end else "DOWN 1" end "TOP" exit

punct: trace o "UP 1" "extract /curline/length" comment=pos('/*',curline.3) if comment<=1 then point=length.1 else point=length(strip(substr(curline.3,1,comment-1))) if substr(curline.3,point,1)^='.' then "REPLACE" insert('.',curline.3,point) "DOWN 1" return

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