Date: Fri, 4 May 2007 18:27:30 -0400
Reply-To: James Algina <algina@UFL.EDU>
Sender: "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From: James Algina <algina@UFL.EDU>
Content-Type: text/plain; format=flowed; charset=us-ascii
I am attempting to translate a SAS program to SPSS syntax. The
structure of the SPSS program currently is
Loop ii=1 to 5.
computation code goes here
END INPUT PROGRAM.
list variables=.... /cases=1/format=numbered.
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.
1423D Norman Hall
P.O. Box 117047
University of Florida
Gainesville, FL 32611
Voice 352-392-0724 x 247