|
It is actually a C function so it should be documented in the C reference (I used a book that actually predates the AS/400). Here is how to prototype it: d system pr 10i 0 extproc('system') d cmd * value options(*string) You will also want to import d error s 7 import('_EXCP_MSGID') If system returns a value less than zero then the message id causing the problem will be contained in 'error'. You will have to reference binding directory QC2LE in order for the binder to find the function. We prefer 'system' over QCMDEXEC because of the better error handling. We have embedded the function into a procedure in a service program that implements a MONMSG type of capability. In a lot of cases we have taken to using 'system' inside our RPG programs to eliminate the front end CL's that were sometimes necessary in the past. Let me know if you have any other questions. Scott Mildenberger > -----Original Message----- > From: Klein Ron [SMTP:ron.klein@brctsg.com] > Sent: Monday, September 18, 2000 2:23 PM > To: ''MIDRANGE-L' > Subject: SYSTEM() > > Hi All, > > I am looking for information on the system() api to use in RPGLE. > Does anyone have a book number that I can search for? > > And also any comments, Pros or Cons on using this API instead of the > QCMDEXEC. > > TIA > Ron > +--- > | 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 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.