|
I would recommend the following instead. This gives you a MONMSG for your
commands right in your RPG programs.
H Bnddir('QC2LE')
H ActGrp(*caller)
H DftActGrp(*NO)
* Execute Command (system) Subprocedure Variables
D System PR 10I 0 ExtProc('system')
D CmdText * Value Options(*String)
D ErrorCPF S 7A Import('_EXCP_MSGID')
D ErrorFlag S 10I 0 Inz(0)
C Eval ErrorCPF=Blanks
C
C Eval ErrorFlag=system(cmd)
C If ErrorFlag<>0
C Select
C When ErrorCPF='CPF1111'
C* ...
C When ErrorCPF='CPF2222'
C* ...
C Other
C* ...
C EndSL
C EndIf
Rob Berendt
==================
Remember the Cole!
Dan Miller
<DanM@HarkerInc.c To: "'RPG400-L@midrange.com'"
<RPG400-L@midrange.com>
om> cc:
Sent by: Subject: Help needed on
QCMDEXEC.
owner-rpg400-l@mi
drange.com
03/27/01 10:59 AM
Please respond to
RPG400-L
How about this one.
D QCmdExc PR ExtPgm('QCMDEXC')
D 256 Options(*Varsize) Const
D 15 5 Const
C CallP QCmdExc(Command:%len(Command))
Daniel R. Miller, VP T&E
Harker, Inc.
33 N. Wickliffe Cir.
Youngstown, OH 44515
(330) 792-0154
www.harkerinc.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
+---
+---
| 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 mailing list archive is Copyright 1997-2025 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.