[Migrated content. Thread originally posted on 02 June 2012]
Good Afternoon,I am having a problem creating a Tab Delimited ASCII file. Here is an example:
I write the following ASCII record:
01 MEI-VT-LUCI-HEADER.
03 FILLER PIC X(06)
VALUE "TICKET".
03 FILLER PIC X(01)
VALUE X"09".
03 FILLER PIC X(01)
VALUE "A".
03 FILLER PIC X(01)
VALUE X"09".
03 FILLER PIC X(01)
VALUE "B".
The hex values should be:
54 49 43 4B 45 54 09 41 09 42 0D 0A
However when I look at the hex values in my resulting ASCII file it looks like:
54 49 43 4B 45 54 00 09 41 00 09 42 0D 0A
For some reason the system puts a X"00" before the X"09" in the ASCII file. If I Examine the record before I write it the values look correct.
Can anyone offer some advice ?
Thanks as always,
Bob