Good News Everybody!
The new search engine is LIVE!
Please report any problems to david (at) midrange.com.
|
----- Message from "Stone, Joel" <Joel.Stone@xxxxxxxxxx> on Tue, 16
Aug 2016 20:11:29 +0000 -----
To:
"'COBOL Programming on the IBM i (AS/400 and iSeries)'" <cobol400-
l@xxxxxxxxxxxx>
Subject:
Re: [COBOL400-L] DDS DFT for date field: does COBOL honor DFT value
with initialize or WRITE verb?
Hi Chuck
Thanks for your detailed explanation.
Im not sure that it makes sense though. It sounds like you are
stating that because COBOL loads an entire record into the buffer
prior to WRITE-ing it, therefore the OS will ignore the DDS DFT
constraints that established.
However, COBOL does honor various other requirements that are
established in the DDS. For example if I have a numeric field
described in DDS, then COBOL will properly initialize that to
zeroes. This will occur properly with both LF and PF WRITEs.
Why does COBOL adhere to numeric constraints on a field during the
record add process, but ignores the DFT constraints?
Thanks!
Joel
As an Amazon Associate we earn from qualifying purchases.
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.