For the cases i tested this evening, i found something that covers my need :

... ! block 80 cms ! pad 80 FF ! punch
pipe reader ! strfind x41 ! substr 2-* ! chop FF ! deblock cms ! ...

X'FF' is used to cut records at the good length. Must not be present in the 
input data.
x'00' is used as the first character of the records, must not be used.


Le 17/01/2021 18:39, « CMSTSO Pipelines Discussion List au nom de Paul 
Gilmartin » <CMS-PIPELINES@VM.MARIST.EDU au nom de paulgboul...@aim.com> a 
écrit :

    On 2021-01-17, at 07:08:54, Rob van der Heij wrote:
    > 
    > On Sun, 17 Jan 2021 at 14:48, Kris Buelens <kris.buel...@gmail.com> wrote:
    > 
    >> Probably there still is a chance that DEBLOCK CMS will complain when the
    >> last meaningful record had a trailing blank.
    >> 
    > 
    > Apparently the halfword 0 is missing, or there wouldn’t be a problem. You
    > could strip trailing blanks from the last record, remember the length, pad
    > with x00 and deblock, then fix the trailing spaces you replaced by x00
    >  
    What if the last data record ends with x'00'?  Or X'40'?  Or ...?

    This problem might be better addressed at the sending end ratner than
    the receiving end.

    Might NETDATA provide a solution?

    -- gil

Reply via email to