Re: Fwd: naming output with syntax

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

Re: Fwd: naming output with syntax

Florio Arguillas
Try the OUTPUT NEW, OUTPUT SAVE and OUTPUT CLOSE
commands as shown (inserted) below.
For detailed explanation about these commands go
Help>Command Syntax Reference.  I am using
Version 16, but I'm pretty sure it is also
available in version 15.  Not sure about 14 though.

HTH,

Florio


At 03:27 PM 5/5/2008, Florio Arguillas wrote:

>>X-DKIM: Sendmail DKIM Filter v2.4.2 eco.phil-fak.uni-duesseldorf.de
>>         m45GeXZ6028792
>>DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple;
>>                 d=phil-fak.uni-duesseldorf.de; s=mail-out; t=1210005639;
>>                 bh=6N2l/kn FlswAdlgdYCfMCiT4zOMpyl1+25A0M1ZSexU=;
>>                 h=User-Agent:Date:Subject:
>>                 From:To:Message-ID:Thread-Topic:Thread-Index:Mime-version:
>>                 Content-type;
>>                 b=cM/7Dyzv+fBkm7ZnQbICg8OLg0CRMzIpYm6sSIiy9FSigNYq4J
>>
>>LeeAx+yj5S9j35TRDh0Vt/1Xd0kmQMm3IhTh5vMVg7f1493hLzkl9ym1Twiqseg4mt+
>>                 V/0BihGYOxlC9JBag2olPWFvhW/D5JiZw3K2cd1tkVdxXwbwW+dCuk=
>>User-Agent: Microsoft-Entourage/12.1.0.080305
>>Thread-Topic: naming output with syntax
>>Thread-Index: Aciuzrv1rRQSRv09FESJJNuVHzksDQ==
>>X-Greylist: Sender succeeded SMTP AUTH authentication,
>>             not delayed by milter-greylist-2.1.5
>>             (eco.phil-fak.uni-duesseldorf.de
>> [134.99.24.130]); Mon, 05 May 2008
>>             18:40:39 +0200 (CEST)
>>X-NoSpam-Level: no (host 85.181.241.229 authorised by smtp-auth)
>>X-Scanned-By: Digested by UGA Mail Gateway on 128.192.1.75
>>X-Scanned-By: MIMEDefang 2.64 on 134.99.24.130
>>Approved-By: "Dipl.-pol. N. Göttling"
>>               <[hidden email]>
>>Date: Mon, 5 May 2008 18:40:32 +0200
>>Reply-To: "Dipl.-pol. N. Göttling"
>>               <[hidden email]>
>>Sender: "SPSSX(r) Discussion" <[hidden email]>
>>X-PH: V4.1@orchid
>>From: "Dipl.-pol. N. Göttling"
>>               <[hidden email]>
>>Subject: naming output with syntax
>>To: [hidden email]
>>X-Original-IP: 128.192.1.101
>>X-Original-Hostname: mailgw.cc.uga.edu
>>X-PMX-Version: 5.2.2.285561, Antispam-Engine:
>>2.5.0.283055, Antispam-Data: 2008.5.5.93156
>>X-PMX-CORNELL-SPAM-CHECKED: poppy
>>
>>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.

OUTPUT NEW NAME = benin.

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

OUTPUT SAVE OUTFILE = ‘/xxx/BENIN.SPO’.
OUTPUT CLOSE benin.


>>DATASET CLOSE benin.
>>
>>*****************************
>>
>>GET FILE='/xxx/data-release-16May2007.sav'.
>>DATASET NAME botswana.
>>
>>SPLIT FILE OFF.
>>
>>FILTER OFF.
>>USE ALL.
>>EXECUTE.
>>
>>WEIGHT OFF.

OUTPUT NEW NAME = botswana.

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

OUTPUT SAVE OUTFILE = ‘/xxx/BOTSWANA.SPO’.
OUTPUT CLOSE botswana.

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

=====================
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: Fwd: naming output with syntax

Florio Arguillas
ADDENDUM:

The extension name for SPSS Viewer files in version 16 is .spv

Florio


Try the OUTPUT NEW, OUTPUT SAVE and OUTPUT CLOSE
commands as shown (inserted) below.
For detailed explanation about these commands go
Help>Command Syntax Reference.  I am using
Version 16, but I'm pretty sure it is also
available in version 15.  Not sure about 14 though.

HTH,

Florio


At 03:27 PM 5/5/2008, Florio Arguillas wrote:

>>X-DKIM: Sendmail DKIM Filter v2.4.2 eco.phil-fak.uni-duesseldorf.de
>>         m45GeXZ6028792
>>DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple;
>>                 d=phil-fak.uni-duesseldorf.de; s=mail-out; t=1210005639;
>>                 bh=6N2l/kn FlswAdlgdYCfMCiT4zOMpyl1+25A0M1ZSexU=;
>>                 h=User-Agent:Date:Subject:
>>                 From:To:Message-ID:Thread-Topic:Thread-Index:Mime-version:
>>                 Content-type;
>>                 b=cM/7Dyzv+fBkm7ZnQbICg8OLg0CRMzIpYm6sSIiy9FSigNYq4J
>>
>>LeeAx+yj5S9j35TRDh0Vt/1Xd0kmQMm3IhTh5vMVg7f1493hLzkl9ym1Twiqseg4mt+
>>                 V/0BihGYOxlC9JBag2olPWFvhW/D5JiZw3K2cd1tkVdxXwbwW+dCuk=
>>User-Agent: Microsoft-Entourage/12.1.0.080305
>>Thread-Topic: naming output with syntax
>>Thread-Index: Aciuzrv1rRQSRv09FESJJNuVHzksDQ==
>>X-Greylist: Sender succeeded SMTP AUTH authentication,
>>             not delayed by milter-greylist-2.1.5
>>             (eco.phil-fak.uni-duesseldorf.de
>> [134.99.24.130]); Mon, 05 May 2008
>>             18:40:39 +0200 (CEST)
>>X-NoSpam-Level: no (host 85.181.241.229 authorised by smtp-auth)
>>X-Scanned-By: Digested by UGA Mail Gateway on 128.192.1.75
>>X-Scanned-By: MIMEDefang 2.64 on 134.99.24.130
>>Approved-By: "Dipl.-pol. N. Göttling"
>>               <[hidden email]>
>>Date: Mon, 5 May 2008 18:40:32 +0200
>>Reply-To: "Dipl.-pol. N. Göttling"
>>               <[hidden email]>
>>Sender: "SPSSX(r) Discussion" <[hidden email]>
>>X-PH: V4.1@orchid
>>From: "Dipl.-pol. N. Göttling"
>>               <[hidden email]>
>>Subject: naming output with syntax
>>To: [hidden email]
>>X-Original-IP: 128.192.1.101
>>X-Original-Hostname: mailgw.cc.uga.edu
>>X-PMX-Version: 5.2.2.285561, Antispam-Engine:
>>2.5.0.283055, Antispam-Data: 2008.5.5.93156
>>X-PMX-CORNELL-SPAM-CHECKED: poppy
>>
>>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.

OUTPUT NEW NAME = benin.

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

OUTPUT SAVE OUTFILE = ‘/xxx/BENIN.SPO’.
OUTPUT CLOSE benin.


>>DATASET CLOSE benin.
>>
>>*****************************
>>
>>GET FILE='/xxx/data-release-16May2007.sav'.
>>DATASET NAME botswana.
>>
>>SPLIT FILE OFF.
>>
>>FILTER OFF.
>>USE ALL.
>>EXECUTE.
>>
>>WEIGHT OFF.

OUTPUT NEW NAME = botswana.

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

OUTPUT SAVE OUTFILE = ‘/xxx/BOTSWANA.SPO’.
OUTPUT CLOSE botswana.

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

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