LEAD function

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

LEAD function

Yifan Lu-3
Dear list,

 

I want to copy the value of the chosen variable from the following line
by doing CREATE NEW_VAR= LEAD(OLD_VAR,1), but I keep receiving the
following error message:

 

 
Warnings

 

Command name: create

Undefined error #15676 - not found in file
"c:\PROGRA~1\spss\en/windows\spss.err"

This command not executed.

 

 

                >Warning # 552

>Possibly due to another error, a procedure has defined more new
variables

>than it has added to the file.  All those which have been defined but
not

>added will be discarded and will be unavailable for further processing.

 

Can anyone tell me what is the problem and how to fix it? I know I could
use SORT CASES then LAG function to achieve this, but LEAD function is a
much cleaner way to do so. Thank you!

 

Yifan
Reply | Threaded
Open this post in threaded view
|

Re: LEAD function

Richard Ristow
It looks like nobody's replied to this one, either.

At 03:30 PM 8/1/2006, Yifan Lu wrote:

>I want to copy the value of the chosen variable from the following
>line by doing CREATE NEW_VAR= LEAD(OLD_VAR,1), but I keep receiving
>the following error message:

If this problem hasn't been solved, could you post the complete syntax
you're running - CREATE plus other commands - and a sample of your
data?

-Good luck,
  Richard