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 (May 2007)Back to main SPSSX-L pageJoin or leave SPSSX-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Fri, 4 May 2007 18:47:06 -0400
Reply-To:     James Algina <algina@ufl.edu>
Sender:       "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From:         James Algina <algina@ufl.edu>
Subject:      Re: Output
Content-Type: text/plain; format=flowed; charset=us-ascii

I have figured out how to create the string variable, but would appreciate any help explaining how to create five cases.

On Fri May 04 18:27:30 EDT 2007, James Algina <algina@ufl.edu> wrote:

> Hello All, > > I am attempting to translate a SAS program to SPSS syntax. The > structure of the SPSS program currently is > > NEW file. > INPUT PROGRAM. > Loop ii=1 to 5. > > computation code goes here > > end loop. > end case. > END FILE. > END INPUT PROGRAM. > execute. > list variables=.... /cases=1/format=numbered. > execute. > > I want to be able to output results (to the SPSS data editor and > the output window) at the end of iteration of the loop so that > five cases are created rather than one and I want to create and > output a string variable during each iteration. > > In SAS I would do this in a data step and would write > > string var name ='expression'; to create the string variable > and put the keyword output; at the end of each iteration in order > to output the results of the iteration. > > > If anyone can provide an explanation of how to do what i am > attempting to do I will appreciate it. > > Jamie > -- > James Algina > Professor > Educational Psychology > 1423D Norman Hall > P.O. Box 117047 > University of Florida > Gainesville, FL 32611 > > Voice 352-392-0724 x 247 > Fax 352-392-5929 > > >

-- James Algina Professor Educational Psychology 1423D Norman Hall P.O. Box 117047 University of Florida Gainesville, FL 32611

Voice 352-392-0724 x 247 Fax 352-392-5929


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