How to insert NULL into a field with data type CHAR in DBMaker via DCI in a COBOL program? (DBMR2557)

~ 0 min
2016-03-18 08:54

The following three configuration variables are used to insert NULL into a field with data type CHAR via DCI.

  • Ÿ   DCI_NULL_ON_SPACE_CHAR
  • Ÿ   DCI_NULL_ON_ILLEGAL_DATE
  • Ÿ   DCI_NULL_ON_ILLEGAL_DATA

In addition, users can dynamically set the three variables with the following statements.

CALL "DCI_SETENV" USING "DCI_NULL_ON_ILLEGAL_DATA" "1"
CALL "DCI_SETENV" USING "DCI_NULL_ON_ILLEGAL_DATE" "1"
CALL "DCI_SETENV" USING "DCI_NULL_ON_SPACE_CHAR" "1"
CALL "DCI_SETENV" USING "DCI_NULL_ON_ILLEGAL_DATA" "0"
CALL "DCI_SETENV" USING "DCI_NULL_ON_ILLEGAL_DATE" "0"
CALL "DCI_SETENV" USING "DCI_NULL_ON_SPACE_CHAR" "0"

 

Version: DBMaker 5.2.x/5.3.x

Product: Normal/Bundle

Platform: Windows/Linux

Average rating 0 (0 Votes)

You cannot comment on this entry

Tags