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




     Think of it this way: 
     
     Program QCMDEXEC executes a command string. In order to execute, 
     you need to give it a formatted command. Because command strings 
     can be of varying length, you also need to tell QCMDEXEC the size 
     of the variable that holds the formatted command string. Thus, the 
     two parms. Per your example (below), CMD is defined as 80 bytes. 
     The LENGTH parm is supplied a default value of 80 on the PARM 
     opcode to match the length of the variable CMD. To use this, you 
     just need to load your command to be executed into CMD and issue 
     the CALL/PARM code.
     
     eric.delong@pmsi-services.com


______________________________ Reply Separator _________________________________
Subject: RE: 2 errs 
Author:  <MIDRANGE-L@midrange.com > at INET_WACO
Date:    10/16/98 4:02 AM


     
---eric <eric@norcov.com> wrote:
>
> The purpose of QCMDEXC is to execute a command from within an RPG 
program.   You are receiving those errors for a couple of reasons: 
> 
> 1.  QCMDEXC is not in quotes and you don't have any parameters 
associated with your call
> 
> i.e.            CALL    'QCMDEXC'
>         PARM                        CMD     80
>             PARM   80                  LENTH 155
     
eric,
     
what are these parms for exactly?
     
_________________________________________________________ 
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.com
     
+---
| 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 
+---
     


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