I have a requirement that in a file of 283 length if value other than 41 in the place of (282,2), i have to replace it with 41.
The field in the position 282 of length 2 bytes is Binary.
I hope I can do this with INREC, IFTHEN and BUILD.
But I need the syntax for processing Binary fields.
If the value is not 41 then replace it with 41? How about if the value is 41, replace it with 41? How about just plug 41 regardless of what is there?
Your requirement is very simple, just a copy with an outrec something like 1:1,281,282:'41',2,BI - but that is just from a faulty memory. Why don't you look up the actual format in your sort manual?