Re: Tab delimiter




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

.



Relevant Pages

  • Re: Headers & Footers Again!
    ... there is no need to change the *paragraph* alignment at all. ... You just insert tab characters to place your ... centered and right-aligned text at the tab stops provided for this purpose. ... > insertion always moves to the right when I insert the "document name"to ...
    (microsoft.public.word.newusers)
  • Re: Decatenate a field with Make Table Query?
    ... > purpose) paragraph style that would include the tab settings for this ... > tab settings will apply to all the paragraphs). ... > Then, in each line, you can insert the tab characters in the appropriate ...
    (microsoft.public.access.queries)
  • Re: Headers & Footers Again!
    ... where your tab characters are. ... but you are inserting tab characters to ... > following all the rules and tutorials on header & footers and setting tabs ...
    (microsoft.public.word.newusers)
  • Re: Changes in the Format of a Plain Text Message in a Forum Group
    ... > It has to do with the font OE uses to display the message. ... >> By using tab characters, they are trying to offset the sender data. ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • Re: Headers & Footers Again!
    ... Your advice is very clear cut Terry & backed up by Suzanne I cant go wrong. ... You just insert tab characters to place your ... > centered and right-aligned text at the tab stops provided for this purpose. ...
    (microsoft.public.word.newusers)