You can use the <a href="http://publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp">ALTER TABLE</a> SQL statement to add a check constraint. Or you could use the native <a href="http://publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp">ADDPFCST</a> (add physical file constraint) as well. Your constraint would need to follow SQL syntax.
CWC
**********************
Last Wiki Answer Submitted: December 15, 2009 8:12 pm by Cwc4,275 pts.
If you live outside the United States, by submitting your email address you consent to having your personal data transferred to and processed in the United States.
You mean like edit words and edit codes? SQL TABLEs don’t have editing. Editing is a reporting function, not a column definition function.
I suppose you might be able to define a LF with editing over the table and reference the LF, though I’ve never tried (nor actually heard of anyone who has). I would expect that it wouldn’t do much good though, except in HLL programming that used native I/O. But that probably messes with the purpose of using SQL for the CREATEs in the first place.
“editing”?
You mean like edit words and edit codes? SQL TABLEs don’t have editing. Editing is a reporting function, not a column definition function.
I suppose you might be able to define a LF with editing over the table and reference the LF, though I’ve never tried (nor actually heard of anyone who has). I would expect that it wouldn’t do much good though, except in HLL programming that used native I/O. But that probably messes with the purpose of using SQL for the CREATEs in the first place.
Tom