Hello,
I am reading cobol files. i noticed recently that some character fields are modified.
data reads like this in cobol:
ID, CMT, DATE
11, OK!, 2007-12-12
12,Done,2007-12-12
...
When I read this from data stage parallel job, i get this:
ID, CMT, DATE
11, OK], 2007-12-12
12,Done,2007-12-12
...
! changes to ] but this is not all, after noticing this, I changed the ! to ] in source file and tried to view it, everything after ] was chopped off.
How can you read [, ] or ! or possibly more specially characters correctly?
Special characters
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 38
- Joined: Wed Sep 19, 2007 10:11 am
- Location: Canada
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
-
- Participant
- Posts: 38
- Joined: Wed Sep 19, 2007 10:11 am
- Location: Canada
the delimiter i just put for readability. i just wanted to demonstrate the three columns.ray.wurlod wrote:Observation: COBOL files don't usually have delimiters.
Are you translating from EBCDIC to ASCII as part of your processing? ...
i am reading from cobol and want to write to a sequencial file in ascii format. but it seems it has problem reading ! and [ and ] characters.
I called IBM, and sounds like a bug which needs patches, there are patches for other versions but not for 7.5.2