Db2

 View Only
Expand all | Collapse all

SQL0407 Null values not allowed in column or variable

  • 1.  SQL0407 Null values not allowed in column or variable

    Posted Tue October 18, 2022 09:46 AM
    SQL0407 Null values not allowed in column or variable, Even when the values are not null the exception is thrown. Is there any way that a statement gets skipped during exception.

    ------------------------------
    Keerthivasan K
    ------------------------------

    #Db2


  • 2.  RE: SQL0407 Null values not allowed in column or variable

    IBM Champion
    Posted Wed October 19, 2022 01:29 AM
    Hi!
     Without seeing the SQL it is tough but I would hazard a guess you are doing an INSERT and not giving all column names/values. Then the "missing" ones get the NULL value and if they are defined as NOT NULL then you get this exception. That's how it is on z/OS anyways...

    ------------------------------
    Roy Boxwell
    ------------------------------