How to handle DB2 null in COBOL?
Posted: Thu Dec 09, 2010 10:29 pm
If a DB2 field is defined as nullable and is set to null, the conventional way of representing this in COBOL is low-values (x'00'). However, that won't work with binary fields (COMP). Is there another way to represent nulls for binary fields, other than defining a null indicator? My experience is you don't allow DB2 fields to be declared as nullable when they may contain binary data. Any other thoughts?