Reading in file containing Low Values doesn't work correctly
- From: Timofmars@xxxxxxxxx
- Date: 23 Jan 2007 11:26:48 -0800
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.
.
- Follow-Ups:
- Prev by Date: Re: accept ... from time
- Next by Date: Re: Reading in file containing Low Values doesn't work correctly
- Previous by thread: Retrieve RBA of VSAM record - z/OS
- Next by thread: Re: Reading in file containing Low Values doesn't work correctly
- Index(es):
Relevant Pages
|
|