|
Have you tried *DEFAULT in place of DEFAULT with asterisk in front? SQL is like 5th language for me so I am a novice guessing a bit here. One thing I have found to be extremely helpful is to go into the Message Member where it stores the SQL error messages, then look at the addtional detail ... this is like second level help on an OS/400 error message ... cursor on error message & F1 to get more info ... well the SQL error messages are like that also ... my pre-compile fail on SQLRPG has summarized error messages that are somewhat clueless, but then I go into the second level help on SQL error messages & there's a mini-essay there that sometimes takes me further. > The AS/400 is complaining about the WITH DEFAULT with error msg > > SQL0199 30 1486 Position 2 Keyword WITH not expected. Valid tokens: > CHECK UNIQUE FOREIGN PRIMARY. > > According to the book I have... > "DEFAULT is a constraint that determines which value is inserted into the > column if no value is specified for the column on an insert" Al Macintyre ©¿© http://www.cen-elec.com MIS Manager Programmer & Computer Janitor Y2K is not the end of my universe, but a re-boot of that old Chinese curse. When in doubt, read the manual, assuming you can find the right one. +--- | This is the Midrange System Mailing List! | To submit a new message, send your mail to MIDRANGE-L@midrange.com. | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com. | To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.