|
----- Message from "Stone, Joel" <Joel.Stone@xxxxxxxxxx> on Wed, 7ADD-DURATION'.
Sep 2016 16:14:35 +0000 -----
To:
"'COBOL Programming on the IBM i (AS/400 and iSeries)'" <cobol400-
l@xxxxxxxxxxxx>
Subject:
[COBOL400-L] help! Any idea why this date function will not compile?
Does the add-duration function not work on database fields?
Why is the field: A0704-DTDUE-DT appearing in the memory map as AN
(alpha) when the compiler KNOWS that it is a date data type? How
can I get the compiler to recognize that the field is a date?
V7r1
Thanks!
Database field:
65 +000022 06 A0704-DTDUE-DT PIC X(8).
+000023* DUE DT
+000024* (Date field)
662 044400 move function ADD-DURATION
044500 (A0704-DTdue-dt of CSCDATEr days 5)
044600 to A0704-DTdue-dt of CSCDATEr
* 662 MSGID: LNC2767 SEVERITY: 30 SEQNBR: 044500
Message . . . . : Function argument 'A0704-DTDUE-DT OF
CSCDATER' did
not have the correct type for function 'FUNCTION
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 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.