Re: Reading in file containing Low Values doesn't work correctly





On Jan 25, 3:44 am, "HeyBub" <heybubNOS...@xxxxxxxxx>

Low-values doesn't really make sense in a LINE SEQUENTIAL file. I wouldn't
be surprised if the results were unpredictable.

The results are entirely predictable, but the prediction needs to be
based on what the appropriate manual states will occur.

In the case of MicroFocus the default behaviour is that when writing a
line sequential record it will be processed and all control characters
will be prefixed by a null (which is the default 'low-value'). On
reading, the null is used as a signal the the next character is a
control character that needs to be preserved. This allows a file to be
written and read that will contain control characters (eg tab, line
feed).

In the case in point the nulls are being seen as guard characters and
are dropped, except where two nulls in a row the second is retained.

To change this behaviour set the 'N' switch to off (-N).

Reading the manual makes the behaviour predictable.

.