× 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: SYSTEM prototype?
  • From: Scott Mildenberger <Smildenber@xxxxxxxxxxxx>
  • Date: Mon, 29 Jan 2001 09:12:51 -0700

Create the following prototype and field definition.

d system          pr            10i 0 extproc('system')       
d   cmd                           *   value options(*string)
  
d error           s              7    import('_EXCP_MSGID') 

and then call with callp like
c                       callp           system('DSPSYSSTS')
c                       if              error <> *blanks
 ***  error handling here
c                       endif


When you compile or bind you need to specify binding directory QC2LE.  We
have embedded this into a service program for ease of use.

By the way, if you think something has been posted previously try searching
the archive at www.midrange.com , it is usually easier and faster to find a
solution.


Scott Mildenberger


> -----Original Message-----
> From: hartawan reksodiputro [mailto:jeanhartawan@hotmail.com]
> Sent: Monday, January 29, 2001 8:12 AM
> To: RPG400-L@midrange.com
> Subject: SYSTEM prototype?
> 
> 
> Hi all,
> 
> Can anyone gives an example on how to use C function, as an 
> alternate to 
> call system command from RPG-IV?
> I kinda recall that it has been posted here, but I'm still 
> lost, please 
> forgive me and show me the way?
> 
> Thanks,
> Jean
+---
| 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.