title: How to add a not null constraint in an existing column in DB2 iSeries?
body: <p>I have tried the following scripts to add a not null constraint to my column.</p>
  
  <pre><code>ALTER TABLE MYDB.RULES ALTER TYPEID SET NOT NULL;
  ALTER TABLE MYDB.RULES ALTER COLUMN TYPEID SET NOT NULL;
  </code></pre>
  
  <p>I also get this error when I execute it: </p>
  
  <pre><code> Reason code 10. [SQL State=57014, DB Errorcode=-952] 
  </code></pre>
  
  <p>Is it possible to do this in DB2 iSeries? </p>