How can I resolve the following compiler error? EZTC0098E >>> $ end of line in quoted string

Document ID : KB000014081
Last Modified Date : 14/02/2018
Show Technical Document Details
Question:

How can I resolve the following compiler error?

  EZTC0098E >>> $ end of line in quoted string

Since upgrading release 11.x, compile of programs containing binary zeroes in a literal string gives the above error.

Environment:
CA Easytrieve Report Generator, release 11.x
Answer:

This is due to the changed way parsing is done in release 11.x, as the source code is partially rewritten in C. 
This causes imbedded non-printable characters in comparison or value assignments to be treated as delimiters. 

To resolve this, instead of coding "IF field-name = ' '..." with X'00' imbedded in the apostrophes, you need to code  "IF field-name = X'00'..." 

As long as only hex zeroes are to be checked, the test may also be done for LOW-VALUES.