Dear all,

I have a question:

myfile has 20 mio. cases, I let the follwoing syntax run

BEGIN PROGRAM PYTHON.

import spss

# open file

spss.Submit(r'''

GET FILE = 'myfile'

/KEEP = varlist.

''')

cur = spss.Cursor(accessType='r')

# the first 10 cases and print type

for i in xrange(10):

row=cur.fetchone()

for x in row:

print type(x), x

cur.close()

END PROGRAM.

if I let the same program in python directly, it is very quickly

but if i let in spss run, it read all 20 mio. cases and very slow!

does anyone an idea?

thanks!