small question

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

small question

Howard Schuman
Probably because I recently downloaded the latest version of
SPSS, the Display command now lists variables in a single column down the
page,
e.g.,
V1
V2
V3
etc.

Is there a way to restore a compact horizontal listing?
(For Display Label, the vertical listing is fine.)     Howard
Reply | Threaded
Open this post in threaded view
|

Re: small question

Peck, Jon
The output is now a pivot table.  You can, therefore, double click and pivot the names into the columns instead of the rows.  You can put the other items into the layers, too, if you just want a one-line display.

Alternatively, if you have SPSS Programmability installed, you can run this little program to list all the variables as one string of text:

begin program.
import spss
vars=[]
for i in xrange(spss.GetVariableCount()):
        vars.append(spss.GetVariableName(i))
print " ".join(vars)
end program.


This version does not worry about line length.  That could be fixed if needed.
Note that there is a DisplayDict module on Developer Central, www.spss.com/devcentral, that gives you a variety of controls for a text version of DISPLAY DICTIONARY.

HTH,
Jon Peck
SPSS

-----Original Message-----
From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of Howard Schuman
Sent: Wednesday, September 27, 2006 10:12 AM
To: [hidden email]
Subject: [SPSSX-L] small question

Probably because I recently downloaded the latest version of
SPSS, the Display command now lists variables in a single column down the
page,
e.g.,
V1
V2
V3
etc.

Is there a way to restore a compact horizontal listing?
(For Display Label, the vertical listing is fine.)     Howard