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 (August 2010)Back to main SPSSX-L pageJoin or leave SPSSX-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Thu, 19 Aug 2010 07:33:51 -0600
Reply-To:     Jon K Peck <peck@us.ibm.com>
Sender:       "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From:         Jon K Peck <peck@us.ibm.com>
Subject:      Re: Can Python render a list of all open datasets?
Comments: To: Ruben van den Berg <ruben_van_den_berg@hotmail.com>
In-Reply-To:  <SNT110-W1387A52AEB8C07B0CAE64AFA9E0@phx.gbl>
Content-Type: multipart/alternative;

Jon Peck SPSS, an IBM Company peck@us.ibm.com 312-651-3435

From: Ruben van den Berg <ruben_van_den_berg@hotmail.com> To: SPSSX-L@LISTSERV.UGA.EDU Date: 08/19/2010 12:01 AM Subject: [SPSSX-L] Can Python render a list of all open datasets? Sent by: "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>

Dear all,

I know there's spssaux.GetActiveDatasetName() but can Python also render a list of ALL open datasets?

begin program. import SpssClient SpssClient.StartClient() ddlist = SpssClient.GetDataDocuments() for i in range(ddlist.Size()): dd = ddlist.GetItemAt(i) ddname = dd.GetDatasetName() ddpath = dd.GetDocumentPath() print ddname, ddpath SpssClient.StopClient() end program.

TIA!

Ruben van den Berg Consultant Models & Methods TNS NIPO Email: ruben.van.den.berg@tns-nipo.com Mobiel: +31 6 24641435 Telefoon: +31 20 522 5738 Internet: www.tns-nipo.com


[text/html]


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