× 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: QCMDEXC
  • From: "Bob Cozzi \(RPGIV\)" <cozzi@xxxxxxxxx>
  • Date: Tue, 7 Aug 2001 07:24:25 -0500
  • Importance: Normal

Joe,
Of course you are.  The field named LENGTH (in your code excerpt is
undefined and COMMAND is also undefined. Remember, the names of
parameters on PROTOTYPES are NOT field declare statements; they are just
comments.
You'll need to create a set of fields move the data (command string,
string length) to those fields, then callP the CMD prototype.
Remember, CALLP is "call with Prototype" not "Call procedure" so calling
procedures or programs is supported.
Hope this helps.

On Mon, 6 Aug 2001, Joe Giusto II (E-mail) wrote:
> I am having trouble compiling a program with the following prototype
and
> callp statements.  The compiler keeps telling me that the procedure is
not
> defined.  Any ideas?
> 
> 0032.00 D CMD             PR                  EXTPGM('QCMDEXC')
> 0033.00 D  COMMAND                     300A   CONST
> 0034.00 D  LENGTH                       15P 5 CONST
> 0058.00 C                   EVAL      COMMAND = 'OVRDBF WHLDE1
SHARE(*YES)'
> 0059.00 C                   CALLP     CMD(COMMAND:LENGTH)
>

Bob Cozzi
cozzi@rpgiv.com
Visit the new on-line iSeries Forums at: http://www.rpgiv.com/forum


+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-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.