Giorgia
Giorgia

Reputation: 11

SPSS/PSPP Insert command does not work anymore

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

Answers (1)

eli-k
eli-k

Reputation: 11360

I can think of two possible reasons:

  1. When you 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.
  2. If your inserted syntax is expecting a different working directory definition than what is defined by the main syntax, it may have trouble finding data files it is supposed to use.

Upvotes: 0

Related Questions