Hi, all..
I'm creating a table with one column of type DATE, non nullable, with
a default of the current date.
The column syntax I'm using is "THIS_DATE_1 DATE NOT NULL DEFAULT
CURRENT DATE"
On LUW, the constraint compiles - I insert a row and the date value is
inserted with the correct default.
The same syntax appears to be failing on zOS:
IBM][CLI Driver][DB2] SQL0104N An unexpected token "DATE" was found
following "". Expected tokens may include: "SQLID". SQLSTATE=42601
I've done some digging on the SQL0104N error, and it's generic enough
to be less than helpful.
I'm looking through the online docs to see if there's a difference in
syntax requirements between LUW and z/OS as regards this particular
instance.
Thanks all, for any suggestions...