Save translate

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

Save translate

Javier Meneses
Hi, I am using spss split dataset like example, but I want that the new file generated to be  saved  to stata format..

How I get this?

Example:
spssinc split dataset splitvar = county

/OUTPUT DIRECTORY= "C:\county_files" DELETECONTENTS = NO
FILENAME = "County_${county}_accounts"
/OPTIONS NAMES =VALUES PRINTLIST=YES .


   Javier
===================== 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
Reply | Threaded
Open this post in threaded view
|

Re: Save translate

Jon K Peck
SPLIT DATASET only produces sav files.  To get another format or to do other tasks, you would typically use
SPSSINC PROCESS FILES to iterate through the files produced by SPLIT DATASET and apply a syntax file to each.  That syntax, in your case, would use the file handle provided by PROCESS FILES to open a sav file and then use SAVE TRANSLATE to write a different format.  PROCESS FILES provides a macro definition for each input, so you can use that to construct an appropriate extension for the SAVE TRANSLATE file specification.

SPLIT DATASET only produces sav files, because it uses XSAVE as it iterates the cases to produce the output.  This is very efficient, since it can write up to 64 files on a single data pass without the input being sorted.


Jon Peck (no "h") aka Kim
Senior Software Engineer, IBM
[hidden email]
phone: 720-342-5621




From:        javier meneses <[hidden email]>
To:        [hidden email]
Date:        10/16/2015 11:21 AM
Subject:        [SPSSX-L] Save translate
Sent by:        "SPSSX(r) Discussion" <[hidden email]>




Hi, I am using spss split dataset like example, but I want that the new file generated to be  saved  to stata format..

How I get this?

Example:
spssinc split dataset splitvar = county
/OUTPUT DIRECTORY= "C:\county_files" DELETECONTENTS = NO
FILENAME = "County_${county}_accounts"
/OPTIONS NAMES =VALUES PRINTLIST=YES .



   Javier
===================== To manage your subscription to SPSSX-L, send a message to LISTSERV@...(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

===================== 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