naming output with syntax

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

naming output with syntax

Dipl.-pol. N. Göttling
Hi at all!

I¹m using the syntax below and I would like to name every output that is
produced after every ³FREQUENCIES VARIABLES² command because I¹m using
different data files. How do I get the output named?

Thanx a lot.


GET FILE='/xxx/3data-release.sav'.
DATASET NAME benin.

SPLIT FILE OFF.

FILTER OFF.
USE ALL.
EXECUTE.

WEIGHT OFF.

FREQUENCIES VARIABLES=Q85
  /ORDER=ANALYSIS.

USE ALL.
COMPUTE filter_$=(Q85 = 1).
VARIABLE LABEL filter_$ 'Q85 = 1 (FILTER)'.
VALUE LABELS filter_$ 0 'Not Selected' 1 'Selected'.
FORMAT filter_$ (f1.0).
FILTER BY filter_$.
EXECUTE.

FREQUENCIES VARIABLES=Q86
  /FORMAT=DFREQ
  /ORDER=ANALYSIS.

DATASET CLOSE benin.

*****************************

GET FILE='/xxx/data-release-16May2007.sav'.
DATASET NAME botswana.

SPLIT FILE OFF.

FILTER OFF.
USE ALL.
EXECUTE.

WEIGHT OFF.

FREQUENCIES VARIABLES=Q85
  /ORDER=ANALYSIS.

USE ALL.
COMPUTE filter_$=(Q85 = 1).
VARIABLE LABEL filter_$ 'Q85 = 1 (FILTER)'.
VALUE LABELS filter_$ 0 'Not Selected' 1 'Selected'.
FORMAT filter_$ (f1.0).
FILTER BY filter_$.
EXECUTE.

FREQUENCIES VARIABLES=Q86
  /FORMAT=DFREQ
  /ORDER=ANALYSIS.

DATASET CLOSE botswana.

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