×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.




Jim said:

It has always been my understanding that by have a values list, SQL and RPG
would NOT allow other values to be entered for that field. Is my
understanding of this incorrect, or is there something else that I need to
look for?

-----------------------------------------------

If you are referring to the DDS VALUES keyword, your understanding is unfortunately incorrect. The DDS field-level validity checking keywords, (CMP, COMP, VALUES, RANGE, etc.) only apply if the field concerned is referenced in a Display File. Nothing to do with RPG or SQL; the checking is done at the workstation level.

The confusion arises because these keywords <can> be coded in Physical/Logical files - but only for reference on Display Files. (Some may also be used to form select/omit criteria.)

The best way to enforce such database rules universally is through Check Constraints, (e.g. ADDPFCST).

Brian.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2026 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.