Re: Tab delimiter




<hmitchell@xxxxx> wrote in message
news:1161980352.958560.301300@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Dear guys,
I used frequently UNSTRING identifier DELIMITED BY "," with success.
Now, it is the first time I am trying to unstring a tab delimited file.
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.
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.
I will appreciate if anyone can help me.
Thanks

Here's the one permutation you evidently didn't try (but that works well):

01 TAB PIC X VALUE X'09'.

UNSTRING something DELIMITED BY TAB INTO Field-A Field-B etc.


.



Relevant Pages

  • Re: Tab delimiter
    ... it is the first time I am trying to unstring a tab delimited file. ... """If there are tab characters in an input record, ... to addition of zero. ...
    (comp.lang.cobol)
  • Tab delimiter
    ... I used frequently UNSTRING identifier DELIMITED BY "," with success. ... it is the first time I am trying to unstring a tab delimited file. ...
    (comp.lang.cobol)