Why don't you just code up a front-end to GLOBALV?

--
Rod

Sent from my iPod

On 19 Jan 2012, at 03:50, Glenn Knickerbocker <[email protected]> wrote:

> On 1/18/2012 8:00 PM, Rick Troth wrote:
>>        OBL varname OBL vardata
>> (OBL being that one-byte-length) 
> 
> Right, the problem is that that length byte doesn't include its own
> length, but PIPE DEBLOCK ONEBYTE assumes it will.
> 
> If I could rule out 255-byte names and values (I have exactly one in my
> current LASTING GLOBALV, sadly), TRANSLATE would be a neat trick:
> 
>  ... | xlate 00-fe 01-ff ff 00
>      | deblock onebyte
>      | xlate 01-ff 00-fe 00 ff
>      | ...
> 
> Actually, though, that has another problem.  Trailing blanks might have
> been lost if the file has been edited.  With SPECS C2V, I can pad the
> record to the maximum possible length and just let the conversion
> truncate it.  DEBLOCK ONEBYTE complains if it's too short, and starts
> another record if it's too long.
> 
> ¬R

Reply via email to