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


  • Subject: RE: prototype parameters
  • From: Joel Fritz <JFritz@xxxxxxxxxxxxxxxx>
  • Date: Tue, 13 Mar 2001 13:52:16 -0800

Look at the cross reference and see if the fields have been redefined as
packed.  

>  -----Original Message-----
> From:         Ray, Adam [mailto:aray@fhp.org] 
> Sent: Tuesday, March 13, 2001 1:16 PM
> To:   'RPG400-L@midrange.com'
> Subject:      prototype parameters
> 
> This is boggling my mind...
> 
> I have a prototype defined as follows:
> 
> DPRR50130         PR                  EXTPGM('PRR50130')
> D p01                           30A                     
> D p02                           90A                     
> D p03                            9A                     
> D p04                            8S 0                   
> D p05                            8S 0
> 
> I am calling the program as follows:
> 
> C                   CALLP     PRR50130(prvds   : cptds   : CPTTHRU :
> C                                      DOSFROM : DOSTHRU)
> 
> I get the following compile error:
> 
> *RNF7535 30    257 015200  The type and attributes of parameter 4 do not
match those
>                            of the prototype.

> *RNF7535 30    257 015200  The type and attributes of parameter 5 do not
match those
>                            of the prototype.
> 
> The 2 parameters in error (DOSFROM and DOSTHRU) are from a Display file
and are defined there as follows:
> 
> A            DOSFROM        8S 0B 20 37
> A            DOSTHRU        8S 0B 20 54
> 
> I don't understand why I'm getting this error message. It looks to me like
the type and attributes are the same.
> Maybe I'm missing something. Can anyone help me?
> 
> - Adam
> 
+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.