Reading in file containing Low Values doesn't work correctly



I'm trying to read in a line sequential file in my COBOL program on my
NT machine. The file is a db2 delimited export file, which is basically
a plain text file.

Two of the columns that are exported contain Low Values. I can verify
that they are low values in the exported data file by looking at the
hex values in an editor.

The data looks something like this:

123456~LL~L~ABCD

The tildes (~) are my delimiters. I'm representing the Low Lalues with
an (L). So this is 4 columns being exported, the first column
containing 123456, the next containing 2 low values characters, the 3rd
containing 1 low value character, and the final column containing ABCD.

The problem is that when I open then read the file into my COBOL
program, what it reads in looks like this:

123456~L~~ABCD

Why didn't it read all the low values? It didn't even replace them with
a space... It just ignored them as if they didn't exist. Although it
did manage to read one of the low value characters, but not the other
2. Any idea what the problem is? I'm just reading the line into a PIC X
(8000) field. I animate the process and I'm able to see what it reads
in immediately after the read statement. I'm also absolutely sure that
I'm reading in the correct file, because any changes in other data do
show up in the animator.

.



Relevant Pages

  • Re: Reading in file containing Low Values doesnt work correctly
    ... basically a plain text file. ... containing 123456, the next containing 2 low values characters, the ... I'm just reading the line into a PIC ... I animate the process and I'm able to see what it ...
    (comp.lang.cobol)
  • Another Newbie question about text files...
    ... I have a COBOL question for you. ... Here are all the variables that the COBOL program is reading in from ... 03 FILLER REDEFINES INPUT-IVR-LINE-BUY. ...
    (comp.lang.cobol)
  • Cobol - Ordinal Position/Control Character
    ... In a COBOL program, ... Or even just the ordinal position of all control characters [function ... To join/leave the list, search archives, change list settings, * ...
    (comp.sys.hp.mpe)
  • 114 Attempt to access item beyond bounds of memory - (Signal 11)
    ... I'm trying to run a cobol program and calling "DBOPEN" with parameters ... I'm trying to open the database with read mode. ... When I animate the program, at this specific point of calling "DBOPEN" ...
    (comp.lang.cobol)
  • Re: COBOL program
    ... Have you got a COBOL program that can read any file? ... I'm in need of a COBOL program that makes the reading of a member in a ... send email to listserv@xxxxxxxxxxx with the message: GET IBM-MAIN INFO ... Search the archives at http://bama.ua.edu/archives/ibm-main.html ...
    (bit.listserv.ibm-main)