|
Folks, I need some guidance. I very rarely use data areas to transfer information, but in this case I must capture some data that is stored there. Whenever I run this program I get an error message telling me that my data area type or length does not match my program data area. Any tips would be appreciated. Thanks in advance, Patrick Code (V4R5): D period uds dtaara(PROCYR) D cmonth 6s 0 D month s 6 * create a character representation of the data area C move cmonth month * C eval *inlr = *on C return Data area definition: Display Data Area System: Data area . . . . . . . : PROCYR Library . . . . . . . : FILLIB Type . . . . . . . . . : *DEC Length . . . . . . . . : 6 0 Text . . . . . . . . . : Processing Year and Month Value . . . . . . . . . : 200312 Error message: Additional Message Information Message ID . . . . . . : RNX0411 Severity . . . . . . . : 50 Message type . . . . . : Escape Date sent . . . . . . : 05/28/03 Time sent . . . . . . : 19:13:49 Message . . . . : Data area PROCYR type or length does not match program data area. Cause . . . . . : Data area PROCYR was defined in the RPG procedure to be of type *CHAR and length 6. The actual data area XYZLIB/PROCYR is of type *DEC and length (6 0). If a *LGL data area is expected, a data area of type *CHAR and length 1 is also allowed. Recovery . . . : Correct the type or length of the data area, or change the library list so the correct data area will be found.
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.