Quantcast
Channel: Visual COBOL - Forum - Recent Threads
Viewing all articles
Browse latest Browse all 4356

Handling files with x'0D0A' at ends of records

$
0
0

I have a data file from an outside source that I am trying to read in my Cobol program but it doesn't seem to like the CRLF at the end of each record.

Is there an easy way in the Cobol program to handle this, or do I need to go into a hex editor to remove these characters?

The SELECT statement for the file is:

SELECT SALESFILE ASSIGN TO "..\..\..\SALES.DAT"

ORGANIZATION IS SEQUENTIAL.

Thanks


Viewing all articles
Browse latest Browse all 4356

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>