Re: Tab delimiter



Robin Lee wrote:

As an aside, Microfocus (or at least the Microsoft version of it) had a
(-N) runtime switch to suppress tab expansion,

That's not what it does. Well, not in any way that is useful. The 'N'
(Null) switch has been in Microfocus at least as far back as Level II
Cobol, as is the 'T' (Tab) switch.

But neither does quite what is normally meant by 'suppressing tab
expansion'.

When the Null switch is on (+N) on writing there will be a Null (x"00")
inserted before each hex character in the record less than x"1B". This
will make a tab into a x"00"x"09" pair. On reading these pairs will
not be expanded and the nulls will be stripped so that the record is as
it was when the WRITE was executed. It will still expand solo tabs.

When the Null switch is off (-N) there is no null insertion on writing
and tabs are expanded on reading.

If it is required to read 'tab separated' data from other programs then
it would be required to have the 'tab' preceeded in each case by a
null.

The Tab switch on causes writing to replace runs of spaces with a tab
character where appropriate. Tabs are expnaded on reading regardless of
this setting.

as well as a system call that
could be executed from within the program to do the same. In the long run,
I found these to be so awkward that I instead wrote an assembly language
routine to do the chore of reading sequential files. This proved to be
quite reliable, and also allowed accommodating other non-printable
characters, as well as files with non-DOS line terminations ... files from
other systems with other variation of textual data files.

I haven't had to deal with this yet in Fujitsu... it's good to know ahead of
time that there's no way to work around it, other than perhaps preprocessing
the input file, as my assembly skills aren't what they used to be.

You could call C routines. Just call fopen, fgets, fclose.

.



Relevant Pages

  • Re: Tab delimiter
    ... runtime switch to suppress tab expansion, ... switch has been in Microfocus at least as far back as Level II ... as is the 'T' (Tab) switch. ...
    (comp.lang.cobol)
  • Re: What do I need to allow internet connection?
    ... Switch to the Privacy tab, click "Default" if it is not grayed out. ... mark the checkbox before "Hide All Microsoft ... Please check if the issue persists in Clean Boot mode. ...
    (microsoft.public.windowsxp.configuration_manage)
  • Re: Unable to access server resources via vpn
    ... Please update your SBS NIC driver, ensure you install the latest driver ... Open ISA server 2004, ... Select Preferences tab, click Authentication button. ... In the right pane, switch to the 'Logging' tab, make sure the 'Task ...
    (microsoft.public.windows.server.sbs)
  • RE: .net passport
    ... this folder. ... Switch to the Security tab, select Internet and click "Default Level". ...
    (microsoft.public.windowsxp.security_admin)
  • Re: Notebook layout
    ... You can also switch from any other view to NBL at any time... ... Page/Print Layout without incident. ... Are the tab ...
    (microsoft.public.mac.office.word)