OMS and Same Name Tables

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

OMS and Same Name Tables

Andrew Piskorowski

Hello All-

 

I’m working with the OMS and would like to output into an SAV file the second Univariate Statistics table (of Subpopulation Descriptives) of the Complex Samples Descriptives command. However using the syntax below only gives me the first ‘Univariate’ table in an SAV file. Outputting both tables or the second one is ideal. I can’t seem to find any references in the archives – any suggestions? Thanks!

 

OMS

  /SELECT TABLES

  /IF COMMANDS=['CSDescriptives'] SUBTYPES=['Univariate Statistics']

  /DESTINATION FORMAT=SAV

   OUTFILE=C:\temp\meansandCI.sav.

 

CSDESCRIPTIVES

  /PLAN FILE='P:\Data\testplan.csaplan'

  /SUMMARY VARIABLES=VAR1 VAR2

/SUBPOP TABLE=POP1

  /MEAN

  /STATISTICS CIN(95)

  /MISSING SCOPE=ANALYSIS CLASSMISSING=EXCLUDE.

OMSEND.

 

-Andrew

 

Reply | Threaded
Open this post in threaded view
|

Re: OMS and Same Name Tables

Oliver, Richard

I suspect your isn’t actually saving anything in the output file, since the OUTFILE specification isn’t quoted and should therefore generate an error. If the OUTFILE specification is quoted, your syntax should produce an output file with all the Univariate Statistics tables generated by the CSDESCRIPTIVES command.

 

If you just want the second Univariate Statistics table, add INSTANCES=2 to the IF subcommand, as in:

 

OMS

  /SELECT TABLES

/IF COMMANDS=['CSDescriptives'] SUBTYPES=['Univariate Statistics']

  INSTANCES=2

  /DESTINATION FORMAT=SAV

   OUTFILE=’C:\temp\meansandCI.sav.’

 

 


From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of Andrew Piskorowski
Sent: Monday, July 27, 2009 3:13 PM
To: [hidden email]
Subject: OMS and Same Name Tables

 

Hello All-

 

I’m working with the OMS and would like to output into an SAV file the second Univariate Statistics table (of Subpopulation Descriptives) of the Complex Samples Descriptives command. However using the syntax below only gives me the first ‘Univariate’ table in an SAV file. Outputting both tables or the second one is ideal. I can’t seem to find any references in the archives – any suggestions? Thanks!

 

OMS

  /SELECT TABLES

  /IF COMMANDS=['CSDescriptives'] SUBTYPES=['Univariate Statistics']

  /DESTINATION FORMAT=SAV

   OUTFILE=C:\temp\meansandCI.sav.

 

CSDESCRIPTIVES

  /PLAN FILE='P:\Data\testplan.csaplan'

  /SUMMARY VARIABLES=VAR1 VAR2

/SUBPOP TABLE=POP1

  /MEAN

  /STATISTICS CIN(95)

  /MISSING SCOPE=ANALYSIS CLASSMISSING=EXCLUDE.

OMSEND.

 

-Andrew