Reputation: 11
I'm using the INSERT command to read the Syntax files. It worked perfectly till now, however when I want to insert the newest syntax (like I usually did) the error is that an active dataset has to be set or that some variable names don't exist (even if they do). When I run the Syntax that I want to insert, there is no error occurring. Did someone encounter this problem as well, or does someone know a solution to this?
This is the code and error:
COMPUTE E51_HHg = 1 + ((E51_AErw -1) * 0.5) + (E51_AJugendl * 0.5) + (E51_AKind * 0.3) + (E51_AKleinkind * 0.3).
EXECUTE.
RECODE E51_HHg (0.5 = -9) (ELSE = COPY).
EXECUTE.
ERROR: Variable labels: E51_HHg is not a variable name.
Upvotes: 1
Views: 291
Reputation: 11360
I can think of two possible reasons:
insert
a syntax file you have to make sure the lines are never more than 256 characters. SPSS just won't read characters beyond 256.Upvotes: 0