Syntax Errors in SPSS to Mplus transfer PreviousNext
Mplus Discussion > Structural Equation Modeling >
Message/Author
 Rhenne Miles posted on Wednesday, January 30, 2013 - 1:24 am
Hello,

I am new to this discussion board. My experience with Mplus and SEM is via a recent course. Thus, I am still figuring out how to remedy sytax issues as they arise. I would greatly appreciate guidance in this area.

I have syntax to create an input file (transferring an SPSS .dat file to MPlus). Please see below with the resulting error messages. I made sure the path file was small and was also told that if the input file was in the same file as the .dat that the full pathway was not needed. Is this saying that I have too many variable names? Also, "Q" is an alphabet character, right?

I've deleted my original syntax and some duplicate errors to meet the size requirements for a post.

Input line exceeded 90 characters. Some input may be truncated.
VARIABLE: NAMES = CASEID YEAR SCH_ID TYPE GRADE SEX RACE Q1 Q2 Q9 Q11 Q12 Q15 Q16 Q17 Q25
*** ERROR
Variable names must begin with an alphabet character:
=
*** ERROR in VARIABLE command
Duplicate variable on NAMES list: CASEID
*** ERROR in VARIABLE command

*** ERROR
Variable names may only contain letters, digits, and the
underscore '_' character: Q26(99)Q32(99)Q33(99)Q34(99)Q101(99)Q102(99)Q104(99)Q105(99)Q106(99)Q10
 Rhenne Miles posted on Wednesday, January 30, 2013 - 1:25 am
Here is my original syntax

DATA: FILE=BPYS Small.dat;
FORMAT=FREE;
LISTWISE=ON;

VARIABLE: NAMES = CASEID YEAR SCH_ID TYPE GRADE SEX RACE Q1 Q2 Q9 Q11 Q12 Q15 Q16 Q17 Q25;
MISSING = CASEID YEAR SCH_ID(99,98)TYPE GRADE (99,98)SEX(99,98)RACE(99,98)Q1(99)
Q26(99)Q32(99)Q33(99)Q34(99)Q101(99)Q102(99)Q104(99)Q105(99)Q106(99)Q1;

ANALYSIS: TYPE=BASIC;
 Linda K. Muthen posted on Wednesday, January 30, 2013 - 12:00 pm
I think the key problem is that you have input lines that are longer than 90 characters. Break the statements so they are all shorter than 90.

If this does not help, please send your output and license number to support@statmodel.com. Please limit future posts to one window.
 Rhenne Miles posted on Thursday, January 31, 2013 - 3:06 pm
Thank you for your help.
Back to top
Add Your Message Here
Post:
Username: Posting Information:
This is a private posting area. Only registered users and moderators may post messages here.
Password:
Options: Enable HTML code in message
Automatically activate URLs in message
Action: