Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

UNSAFE_NULL - Procob / Net Cobol

803205Oct 5 2010 — edited Oct 5 2010
Hi,

I have a query regarding handling NULL :

Normally by syntax, to work with NULL fields in the table, Pro*COBOL uses Indicator Variables.
But there is a workaround to set a variable named UNSAFE_NULL=YES, which allows the fetching of Database variables and, Spaces are retrieved into the Variables if the DB field has NULL.

In my MicroFocus COBOL code, there are lot of code which Inserts Spaces to Database (not just fetch, but INSERT/update) into Date and Numeric Data type fields, which accepts them and inserts Null into the fields. But NetCOBOL does not allow this.

Can someone tell me if there is any variable to set, such that it allows spaces to be inserted/updated into Database fields of Type Date / Numeric, such that Spaces are inserted as NULLS in to Database.

Thanks in advance !!

-Sunil
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 2 2010
Added on Oct 5 2010
1 comment
508 views