You are here

Error in output

8 posts / 0 new
Last post
liagym1's picture
Offline
Joined: 11/06/2019 - 10:16
Error in output

I am trying to run an ACE with moderator script, and this is the error I received in the output. What changes should i make in my data?

Error found in rectangular data; record number 1 :

 1004 -999 -999 -999 -999 -999

We have a problem whose error code is 176

and which I ran across at line number 38

of your input script

RE FILE=AGE11DATA.DAT

    ~~~          

An error has occurred while reading a rectangular file

Make sure that you don't have a FORMAT at the beginning

and note, I can't read numbers that begin with D, Q or E.

tbates's picture
Offline
Joined: 07/31/2009 - 14:25
classic Mx?

Looks like this is a classic Mx script?

liagym1's picture
Offline
Joined: 11/06/2019 - 10:16
Yes! I forgot to mention in

Yes! I forgot to mention in my question.

AdminRobK's picture
Online
Joined: 01/24/2014 - 12:15
text-file format

I haven't used classic Mx in so long that I've forgotten all of the details of how it works. But, if I correctly understand its manual, classic Mx can only read ASCII-formatted files (that have DOS-style line breaks, i.e. CRLF??). Based solely on the error message (i.e., without seeing the whole script), my guess is that you're trying to load a datafile that's in Unicode format. Specifically, I suspect the first line of the file starts with a byte order mark, on which Mx chokes when trying to read it. Edit: actually, since Mx was able to read most (all?) of the line, maybe it's a Unicode-specific newline character.

Two further questions:
1. What operating system are you running?
2. Did you use SPSS to create the data file you're trying to use with Mx?

liagym1's picture
Offline
Joined: 11/06/2019 - 10:16
Re: error in output
  1. I'm not sure what operating system is. I use windows 10 and I ran the script in Mx 32 (I forgot to mention that in my question!- I couldn't a forum for classic Mx).
  2. Yes, from SPSS to ASCII-format data file.
    Thank you for your reply.
liagym1's picture
Offline
Joined: 11/06/2019 - 10:16
I removed the byte order mark

I removed the byte order mark and my script works. Thank you so much for your help!

AdminRobK's picture
Online
Joined: 01/24/2014 - 12:15
So it WAS a byte-order mark

So it WAS a byte-order mark at the start of an SPSS-created file after all! I've encountered that very scenario twice in the past year and a half myself. Come to think of it, when I was a student, I twice saw a GWAS fail to run because SPSS had output a corrupt phenotype file.

AdminNeale's picture
Online
Joined: 03/01/2013 - 14:09
Kudos Rob!

Nice spot - ascii files can come in many flavors and have invisibles difficult to spot with some editors.