Created On:  30 March 2011

Problem:

A printer exit routine reads print records that contain null or Hex'00' characters, but these null characters somehow get removed and cause the printout to be shifted gradually to the left line by line.

Example:

If the print out from the Cobol program is as follows:

1 12345 364848  288823 7913784
2 27837 737237  372327 2377838
3 73878 890380  098393 3893888


And if the second position in the above records is Hex'00', the printer exit gives the output as:

112345 364848  288823 79137842
27837 737237  372327 237783837
3878 890380  098393 3893888

Resolution:

The default behavior is to strip out NULL characters during READ operations, so to resolve this issue, you will need to set the File Handler configuration option INSERTNULL to OFF.
 
Here are the steps to achieve this: 
 
1. create a CFG file with the following lines
[XFH-DEFAULT]
INSERTNULL=OFF
 
 
2. set the EXTFH environment variable to point to the above CFG file - this can be set within your server or from the system level. Here is how to set it within your sever:
   a. open Enterprise Server Administration page
   b. click on Edit of the server you wish to set the environment variable
   c. add the following two lines to Configuration Information (only add [ES-Environment] if it was not defined already) : 
   [ES-Environment] 
   EXTFH=x:\\Dir\\SubDir\\YourFile.CFG
 
3. click on Apply 
 
4. click on OK 
 
5. restart the server
Incident #2478221