Hi Roy,
What you need to do is to add a line feed LF char(10) to your carriage
returns char(13).
This can either be done at unix level by cat file | tr '\l' '\l\015' > file2
(15 being the octal equivalent of 13)
or
programatically by
CHANGE(RECORD,CHAR(13),CHAR(10):CHAR(13),-1)
I don't have an AIX machine in front of me at the moment so I may not be
100% correct on the syntax but that shout give you something to play around
with.

On Wed, Nov 10, 2010 at 9:05 AM, Roy Beard <[email protected]> wrote:

> Hi all,
>
>
>
> I am trying to read a Unix file from and old aix machine.  The people who
> sent it will not bend in how they sent it.
>
> What I got was in binary format so I used 'od' to convert it to ascii.
>  When
> I tried to cat the file before trying to READSEQ records it looked like
> gibberish!
>
> I realized that if I set my Term type to vt100, I could read it but the
> carriage returns were just ^M after each record.  After trying 'sed' I gave
> up.
>
>
>
> Universe will not read the file at all.  I still get gibberish even on the
> converted file.
>
>
>
> Any ideas?  There must be a way to do this.  What am I missing?
>
>
>
> Thanks,
>
>
>
> Roy
>
> _______________________________________________
> U2-Users mailing list
> [email protected]
> http://listserver.u2ug.org/mailman/listinfo/u2-users
>
_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users

Reply via email to