Does anybody know how to read a RECORD SEQUENTIAL ASCII file with one record in it that has no CR/LF (hex 0D0A) at the end of it under MSDOS 6.22 on a PC.
I'm sorry. When i looked at your program, i did'nt understand what was happening. However, since you replied to this message, i looked at it again and will try what you suggest.
filestatus 10 means end-of-file. Did you read byte by byte?
It is so strange that it doesn't work...
Perhaps you should write this particular part in CA-REALIA COBOL.
Perhaps you can place your small read-routine here with your e-mail address....
Perhaps I try this one with my old MicroFocus compiler which I use only for some particular customers... It worked with DBase files with the source you got...
Ahhh! Got an idea!
You can change your input in a DOS way:
create one file with your editor with one empty line.
Say you call it CRLF.ASC
Now you do the following command:
copy /b myfile+crlf.asc newfile
And now try to process the newfile...
It has a carriage return/line feed inside.
With byte by byte I mean that you make a record length of one single byte for this situation you have. Try it with the code you were testing. You can put those bytes into one string in working storage... It will not be fast but the job will be done.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.