Opening a syntax file with SPS.extention

Moderators: statman, Analyst Techy, andris, Fierce, GerineL, Smash

Maligeorge
Posts: 1
Joined: Fri Nov 09, 2012 7:04 pm

Opening a syntax file with SPS.extention

Postby Maligeorge » Fri Nov 09, 2012 7:45 pm

Here is the question
I was able to bring the file 2002FemRepsetup.sps to the Syntax Editor as you can see below .What should i need to do to open it on SPSS for analysis.There are over 5000 cases in my data set ..i am only pasting the top section...Your help will be greatly appreciated

here is the data set pasted into the Syntax editor..i am also attaching the file...is anybody to help..I will really appreciate it...


* SPSS SETUP FILE PREPARED BY ICPSR
* NATIONAL SURVEY OF FAMILY GROWTH, CYCLE 6
* (DATASET: FEMALE FILE)
*
*
* SPSS setup sections are provided for the ASCII version of this data
* collection. These sections are listed below:
*
* DATA LIST: assigns the name, type, decimal specification (if any),
* and specifies the beginning and ending column locations for each
* variable in the data file. Users must replace the "data-filename"
* in the DATA LIST statement with a filename specifying the directory
* on the user's computer system in which the downloaded and unzipped
* data file is physically located (e.g., "c:\temp\04157-0001-data.txt").
*
* VARIABLE LABELS: assigns descriptive labels to all variables.
* Labels and variable names may be identical for some data files.
*
* MISSING VALUES: declares user-defined missing values. Not all
* variables in this data set necessarily have user-defined missing
* values. These values can be treated specially in data transformations,
* statistical calculations, and case selection.
*
* VALUE LABELS: assigns descriptive labels to codes found in the data
* file. Not all codes necessarily have assigned value labels.
*
* NOTE: Users should modify this setup file to suit their specific
* needs. The MISSING VALUES section has been commented out (i.e., '*').
* To include the MISSING VALUES section in the final SPSS setup, remove
* the comment indicators from the desired section.
*
* CREATING A PERMANENT SPSS DATA FILE: If users wish to create and save
* an SPSS data file for further analysis using SPSS for Windows, the
* necessary "SAVE OUTFILE" command is provided in the last line of
* this file. To activate the command, users must delete the leading
* asterisk (*) and replace "spss-filename" with a filename specifying
* the location on the user's computer system to which the new data file
* will be saved (e.g., SAVE OUTFILE="c:\spsswin\data\da04157-0001.sav").
*
*-------------------------------------------------------------------------.

* SPSS FILE HANDLE AND DATA LIST COMMANDS.

CASEID 1-12 (A) RSCRINF 13 RDORMRES 14
ROSTSCRN 15 RSCREENHISP 16 RSCREENRACE 17
AGE_A 18-19 AGE_R 20-21 CMBIRTH 22-25
AGESCRN 26-27 MARSTAT 28 FMARSTAT 29
FMARIT 30 EVRMARRY 31 HISP 32
HISPGRP 33 NUMRACE 34 ROSCNT 35
HPLOCALE 36 MANREL 37 FL_RAGE 38
FL_RRACE 39 FL_RHISP 40 GOSCHOL 41
VACA 42 HIGRADE 43-44 COMPGRD 45
HAVEDIP 46 DIPGED 47 CMHSGRAD 48-51
HAVEDEG 52 DEGREES 53 WTHPARNW 54
ONOWN 55 INTACT 56 PARMARR 57
LVSIT14F 58 LVSIT14M 59 WOMRASDU 60
MOMDEGRE 61 MOMWORKD 62 MOMCHILD 63-64
MOMFSTCH 65-66 MOM18 67 MANRASDU 68
DADDEGRE 69 BOTHBIOL 70 INTACT18 71
ONOWN18 72 NUMBABES 73-74 TOTPLACD 75
NPLACED 76 NDIED 77 NADOPTV 78
HASBABES 79 CMLASTLB 80-83 CMFSTPRG 84-87
CMLSTPRG 88-91 MENARCHE 92-93 PREGNOWQ 94
MAYBPREG 95 NUMPREGS 96-97 EVERPREG 98
CURRPREG 99 MOSCURRP 100 GIVEADPT 101
NGIVENAD 102 OTHERKID 103 NOTHRKID 104-105
SEXOTHKD 106 RELOTHKD 107 ADPTOTKD 108
TRYADOPT 109 TRYEITHR 110 STILHERE 111
CMOKDCAM 112-115 OTHKDFOS 116 CMOKDDOB 117-120
OTHKDSPN 121 OTHKDRAC1 122 OTHKDRAC2 123
KDBSTRAC 124 OKBORNUS 125 OKDISABL1 126
SEXOTHKD2 127 RELOTHKD2 128 ADPTOTKD2 129
TRYADOPT2 130 TRYEITHR2 131 STILHERE2 132
CMOKDCAM2 133-136 OTHKDFOS2 137 CMOKDDOB2 138-141
OTHKDSPN2 142 OTHKDRAC6 143 OKBORNUS2 144
OKDISABL5 145 SEXOTHKD3 146 RELOTHKD3 147
ADPTOTKD3 148 TRYADOPT3 149 TRYEITHR3 150
STILHERE3 151 CMOKDCAM3 152-155 OTHKDFOS3 156
CMOKDDOB3 157-160 OTHKDSPN3 161 OTHKDRAC11 162
Penguin_Knight
Posts: 473
Joined: Thu Apr 05, 2012 5:58 pm

Re: Opening a syntax file with SPS.extention

Postby Penguin_Knight » Sat Nov 10, 2012 5:34 pm

See this part:

* CREATING A PERMANENT SPSS DATA FILE: If users wish to create and save
* an SPSS data file for further analysis using SPSS for Windows, the
* necessary "SAVE OUTFILE" command is provided in the last line of
* this file. To activate the command, users must delete the leading
* asterisk (*) and replace "spss-filename" with a filename specifying
* the location on the user's computer system to which the new data file
* will be saved (e.g., SAVE OUTFILE="c:\spsswin\data\da04157-0001.sav").

You need to scroll to way down and specify where the file will be saved. Once you have done that, open the .sav file for analysis.

Who is online

Users browsing this forum: No registered users and 2 guests

cron