Convert C++ code to LB to create a response with parity chk