× 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: RPG to RPGLE conversion error
  • From: Gary Guthrie <GaryGuthrie@xxxxxxxx>
  • Date: Thu, 29 Mar 2001 18:13:19 -0600

James (Jim),

Did you not get my earlier note that showed you have the object type
parameter defined wrong. Change it from a length of 8 to the required
length of 10 and all will be fine.

Gary Guthrie
NEWS/400 Technical Editor



"James Jim Lundy (by way of David Gibbs )" wrote:
> 
>         I have a program that will not run after using CVTRPGSRC and 
>recompiling as
> RPGLE.
>         Am at V4 R3.
> 
>         I would leave it alone except I need to move to another 400 that does 
>not
> have CRTPRGPRG cmd.
>         Their compiler will only handle RPGLE.
> 
>         MSGID in the following code now has 'CPF2101' object type invalid.
>         ERROR has '*FILE'.
>         Purpose of code is to test existence of file.
> 
> C                   CALL      'QUSROBJD'
> C                   PARM                    RCVVR2
> C                   PARM      100           RCVLEN
> C                   PARM      'OBJD0100'    FILFMT            8
> C                   PARM                    FILLIB
> C                   PARM      '*FILE'       OBJTYP            8
> C                   PARM                    ERROR
> C     MSGID         IFNE      *BLANKS
> C                   EXSR      SNDMSG
> C                   GOTO      END
> C                   ENDIF
> 
>         Thanks
> 
> James (Jim) Lundy
> mailto:jlundy@rbnet.com
> 
> V (540) 265-2179
> F (540) 265-2051
> Friendship Manor Inc.
> Roanoke, Va
> 
> +---
> | 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
> +---
+---
| 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 ...

Replies:

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.