Run SPSS Syntax if there is at least 1 cases in filter

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

Run SPSS Syntax if there is at least 1 cases in filter

Alex Huang
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: Run SPSS Syntax if there is at least 1 cases in filter

Andy W
You could do it with Python, but how about this -- use SPLIT FILE with Type. Then when making other tables you will have all of the tables split between each of the categories within Type.
Andy W
apwheele@gmail.com
http://andrewpwheeler.wordpress.com/
Reply | Threaded
Open this post in threaded view
|

Re: Run SPSS Syntax if there is at least 1 cases in filter

Jon Peck
SPLIT FILES will iterate over values that actually occur in the split variable for the dataset, but to get separate tables for each value, use
SPLIT FILES SEPARATE x.
Otherwise you get a single table containing all the splits (which might be preferred anyway).

However, if the need is to run a bunch of procedures for each split so that all the output is grouped together for each split, then SPLIT FILES isn't the solution.  The SPSSINC SPLIT DATASET combined with SPSSINC PROCESS FILES extension commands generalized SPLIT FILES by allowing you to run an entire block of syntax for each split value, hence grouping the output by the split variable.

On Thu, Aug 11, 2016 at 7:06 AM, Andy W <[hidden email]> wrote:
You could do it with Python, but how about this -- use SPLIT FILE with Type.
Then when making other tables you will have all of the tables split between
each of the categories within Type.



-----
Andy W
[hidden email]
http://andrewpwheeler.wordpress.com/
--
View this message in context: http://spssx-discussion.1045642.n5.nabble.com/Run-SPSS-Syntax-if-there-is-at-least-1-cases-in-filter-tp5732880p5732881.html
Sent from the SPSSX Discussion mailing list archive at Nabble.com.

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



--
Jon K Peck
[hidden email]

===================== 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: Run SPSS Syntax if there is at least 1 cases in filter

David Marso
Administrator
In reply to this post by Andy W

That would be my suggestion as well!

Andy W wrote
You could do it with Python, but how about this -- use SPLIT FILE with Type. Then when making other tables you will have all of the tables split between each of the categories within Type.
Please reply to the list and not to my personal email.
Those desiring my consulting or training services please feel free to email me.
---
"Nolite dare sanctum canibus neque mittatis margaritas vestras ante porcos ne forte conculcent eas pedibus suis."
Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff in abyssum?"