Does the file have newlines in it?
.dat files are generally created by an application program, and may appear to operating system utilities as a single line, that is, the records are fixed length, and do not have record separators.
Use 'hexdump' to determine if there are record separators (a line feed is 0a in hexadecimal.)