Joined: 07 Dec 2007 Posts: 2205 Location: San Jose
Alternatively you can use the TRAN=BIT and TRAN=UNBIT parms to get the desired results
Assuming LRECL=80 and RECFM=FB. we first convert the byte at position 9 to bits in position 81 and then replace the end portion with zeros and then use UNBIT to put it back at position 9.
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
Another variant. Uses a hex constant (X'...') on SYMNAMES for the '0C' value (since it will be used in two places).
The constant is appended to the end of the record, then a SUBtract, with both fields specified as BInary. May be useful where a bit pattern exists, but where other bits are required to retain their value, zero or non-zero (1).