Re: Tab delimiter
- From: "Richard" <riplin@xxxxxxxxxxxx>
- Date: 27 Oct 2006 15:41:02 -0700
hmitchell@xxxxx wrote:
I used frequently UNSTRING identifier DELIMITED BY "," with success.
Now, it is the first time I am trying to unstring a tab delimited file.
It is unlikely to work as Fujitsu, and others, will do tab-expansion
when reading a LINE SEQUENTIAL file.
"""If there are tab characters in an input record, spaces are inserted
to align the following characters to preset tab positions. The tab
positions are 1, 8, 12, 16, ...."""
I tried DELIMITED BY X"09"; ...X"9"...X'9'...X'09'...TAB...without
success. In the best scenario, it only unstrings the 1rst. field.
Yes, that will be the exact effect given the tab expansion that is
done.
Currently, I am using Fujitsu COBOL85.
When I compile using "X9" or X'9' or X'09' this is the error:
JMN1028I-S NUMBER OF HEXADECIMAL CHARACTERS(0 THROUGH 9 AND A THROUGH
F) OF HEXADECIMAL NONNUMERIC LITERAL MUST BE MULTIPLE OF 2. ZERO IS
ADDED TO THE LAST CHARACTER.
"X9" is the two characters 'X' and '9'. X'9' will become hex '90' due
to addition of zero. X'09' should give the correct tab character, but
you will never see one in an input line sequential file unless you can
find a way with a compiler or runtime option to disable tab expansion.
I will appreciate if anyone can help me.
Thanks
.
- Follow-Ups:
- Re: Tab delimiter
- From: HeyBub
- Re: Tab delimiter
- References:
- Tab delimiter
- From: hmitchell
- Tab delimiter
- Prev by Date: Re: Tab delimiter
- Next by Date: Re: Tab delimiter
- Previous by thread: Re: Tab delimiter
- Next by thread: Re: Tab delimiter
- Index(es):
Relevant Pages
|