× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



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 thread ...

Follow-Ups:

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

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.