|
Hi all- I’m using v15 and have an SPSS file with many sparkly populated text fields (open ended comments in a survey). My goal is to export a single excel file with a sheet per comment variable and [where I’m stuck] have each sorted so blank cells for that variable are at the bottom. Preferable but not mandatory would be to include the unique ID variable form the survey too (V1). So variables are: V1 (id-but a string if that matters) Q140 Q141 Q399 [note that comments variables are not all in a series of names, but I can arrange them to be adjacent in the dataset easily for a loop solution that uses TO] Any suggestions greatly appreciated. Regards, Brian Brian Moore 14040 N. Northsight Blvd.
|
|
Hi Brian,
try this: SAVE TRANSLATE /CONNECT='DSN=Excel Files;DBQ=C:\temp\verbatims.xls;DriverId=790;MaxBufferSize=2048;PageTimeout=5;' /TABLE="verbatim1" /TYPE=ODBC /KEEP=id verbatim1 /REPLACE. it will save the variable 'verbatim1' along with the unique identifier 'id' to a specified sheet with the same name, you must run this syntax for each string variable in your data file. you can encapsulate this piece of code into a macro, in order to automate it. hth, Vlad On Fri, Jun 26, 2009 at 6:07 PM, Brian Moore<[hidden email]> wrote: > Hi all- > > I’m using v15 and have an SPSS file with many sparkly populated text fields > (open ended comments in a survey). > > My goal is to export a single excel file with a sheet per comment variable > and [where I’m stuck] have each sorted so blank cells for that variable are > at the bottom. Preferable but not mandatory would be to include the unique > ID variable form the survey too (V1). > > So variables are: > > V1 (id-but a string if that matters) > > Q140 > > Q141 > > Q399 > > [note that comments variables are not all in a series of names, but I can > arrange them to be adjacent in the dataset easily for a loop solution that > uses TO] > > Any suggestions greatly appreciated. > > Regards, > > Brian > > Brian Moore > Market Research Manager > WorldatWork > > 14040 N. Northsight Blvd. > Scottsdale, AZ. 85260 USA > Tel: 480-304-6832 Fax: 480-483-8352 > E-mail: [hidden email] > www.worldatwork.org > > UPCOMING CONFERENCES: > Total Rewards 2009 Asia Pacific > Oct. 7-9 | Hong Kong > > Total Rewards 2010 > May 16-19 | Dallas / Ft.Worth, TX ===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD |
| Free forum by Nabble | Edit this page |
