N OF CASES

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

N OF CASES

Albert-Jan Roskam
This week I found out that N OF CASES now (v20) requires an EXECUTE, whereas before (v14) it took effect immedately.
That's also what the CSR still says. I often do N OF CASES 1000 to debug code, but it now also needs an EXE.

Is that intentional?


Regards,
Albert-Jan


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
All right, but apart from the sanitation, the medicine, education, wine, public order, irrigation, roads, a
fresh water system, and public health, what have the Romans ever done for us?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

=====================
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: N OF CASES

Jon K Peck
I'm not following.  All N OF CASES does is to permanently limit the number of cases that will be read, so this can only take effect on the next data pass.  N OF CASES does not trigger a data pass.  But there would be no need for an EXECUTE except for something like SHOW N run before the next data pass.


Jon Peck (no "h") aka Kim
Senior Software Engineer, IBM
[hidden email]
phone: 720-342-5621




From:        Albert-Jan Roskam <[hidden email]>
To:        [hidden email],
Date:        09/14/2013 02:33 PM
Subject:        [SPSSX-L] N OF CASES
Sent by:        "SPSSX(r) Discussion" <[hidden email]>




This week I found out that N OF CASES now (v20) requires an EXECUTE, whereas before (v14) it took effect immedately.
That's also what the CSR still says. I often do N OF CASES 1000 to debug code, but it now also needs an EXE.

Is that intentional?


Regards,
Albert-Jan


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
All right, but apart from the sanitation, the medicine, education, wine, public order, irrigation, roads, a
fresh water system, and public health, what have the Romans ever done for us?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

=====================
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: N OF CASES

Albert-Jan Roskam
 I'm
 not following.  All N OF CASES
 does is to permanently limit the number of cases that will
 be read, so
 this can only take effect on the next data pass.  N OF
 CASES does
 not trigger a data pass.  But there would be no need
 for an EXECUTE
 except for something like SHOW N run before the next data
 pass.

--> From the CSR: "N OF CASES takes effect as soon as it is encountered in the command sequence."
 And on p 44: "Other Commands That Take Effect Immediately"... N OF CASES... *)

That corresponds wiith my idea that this command interferes with a data pass, e.g. GET FILE starts reading a file, but it stops at a given record after encountering N OF CASES.

IIRC, I did something like this (I am not 100 % sure):

GET FILE...
N OF CASES 1000.
SORT CASES BY id. /* was supposed to be only a 1000 cases!.
MATCH FILES /FILE = * /TABLE = "..." /BY id.

Regards,
Albert-Jan

*) ftp://public.dhe.ibm.com/software/analytics/spss/documentation/statistics/20.0/en/client/Manuals/IBM_SPSS_Statistics_Command_Syntax_Reference.pdf


 Jon Peck (no "h") aka Kim

 Senior Software Engineer, IBM

 [hidden email]

 phone: 720-342-5621









 From:

  Albert-Jan
 Roskam <[hidden email]>

 To:

  [hidden email],


 Date:

  09/14/2013
 02:33 PM

 Subject:

    [SPSSX-L] N
 OF CASES

 Sent by:

    "SPSSX(r)
 Discussion" <[hidden email]>








 This week I found out that N OF CASES now
 (v20) requires
 an EXECUTE, whereas before (v14) it took effect immedately.

 That's also what the CSR still says. I often do N OF
 CASES 1000 to debug
 code, but it now also needs an EXE.



 Is that intentional?





 Regards,

 Albert-Jan





 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

 All right, but apart from the sanitation, the medicine,
 education, wine,
 public order, irrigation, roads, a

 fresh water system, and public health, what have the Romans
 ever done for
 us?

 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



 =====================

 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: N OF CASES

Jon K Peck
After the sort you will have no more than 1000 cases.  The rest will be gone.


Jon Peck (no "h") aka Kim
Senior Software Engineer, IBM
[hidden email]
phone: 720-342-5621




From:        Albert-Jan Roskam <[hidden email]>
To:        Jon K Peck/Chicago/IBM@IBMUS,
Cc:        [hidden email]
Date:        09/14/2013 04:37 PM
Subject:        Re: [SPSSX-L] N OF CASES




 
I'm
not following.  All N OF CASES
does is to permanently limit the number of cases that will
be read, so
this can only take effect on the next data pass.  N OF
CASES does
not trigger a data pass.  But there would be no need
for an EXECUTE
except for something like SHOW N run before the next data
pass.

--> From the CSR: "N OF CASES takes effect as soon as it is encountered in the command sequence."
And on p 44: "Other Commands That Take Effect Immediately"... N OF CASES... *)

That corresponds wiith my idea that this command interferes with a data pass, e.g. GET FILE starts reading a file, but it stops at a given record after encountering N OF CASES.

IIRC, I did something like this (I am not 100 % sure):

GET FILE...
N OF CASES 1000.
SORT CASES BY id. /* was supposed to be only a 1000 cases!.
MATCH FILES /FILE = * /TABLE = "..." /BY id.

Regards,
Albert-Jan

*)
ftp://public.dhe.ibm.com/software/analytics/spss/documentation/statistics/20.0/en/client/Manuals/IBM_SPSS_Statistics_Command_Syntax_Reference.pdf


Jon Peck (no "h") aka Kim

Senior Software Engineer, IBM

[hidden email]

phone: 720-342-5621









From:
     
 Albert-Jan
Roskam <[hidden email]>

To:  
   
 [hidden email],


Date:
     
 09/14/2013
02:33 PM

Subject:
   
   [SPSSX-L] N
OF CASES

Sent by:
   
   "SPSSX(r)
Discussion" <[hidden email]>








This week I found out that N OF CASES now
(v20) requires
an EXECUTE, whereas before (v14) it took effect immedately.

That's also what the CSR still says. I often do N OF
CASES 1000 to debug
code, but it now also needs an EXE.



Is that intentional?





Regards,

Albert-Jan





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

All right, but apart from the sanitation, the medicine,
education, wine,
public order, irrigation, roads, a

fresh water system, and public health, what have the Romans
ever done for
us?

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



=====================

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