Some of the reasons that may
have caused it to fail are:
Also, DOCMD returns a value that indicates whether it was successful. You might want to use and test that variable in your code. As previously noted, if the command to be invoked is CALL, it makes more sense to use RPG's CALL op code. Following are two sample programs that worked for me. Library CGIDEV2DEV is my CGIDEV2 development library. Mel Rothman, CGIDEV2 Author Mel Rothman, Inc. RPGLE program TESTDOCMD compiled with ACTGRP(*NEW) ------------- /copy qrpglesrc,hspecs /copy qrpglesrc,hspecsbnd H dftactgrp(*no) actgrp(*new) /copy qrpglesrc,prototypeb /copy qrpglesrc,usec * Other variables D accnt s 32 inz('Test data') D rc s 10i 0 /free rc = DoCmd('CALL CGIDEV2DEV/TESTDOCMD2 PARM(''' + %trimr(accnt) + ''')'); *inlr = *on; /end-free CLLE program TESTDOCMD2, compiled with ACTGRP(*CALLER) -------- PGM PARM(&ACNT) DCL VAR(&ACNT) TYPE(*CHAR) LEN(32) SNDPGMMSG MSGID(CPF9898) MSGF(QCPFMSG) MSGDTA(&ACNT) + TOPGMQ(*PRV (*PGMBDY *NONE TESTDOCMD)) + MSGTYPE(*COMP) ENDPGM Ignatius Kalapurakkel wrote:
SPONSORED LINKS
YAHOO! GROUPS LINKS
|
- [Easy400Group] Need help on "DoCmd" proced... ignatiuskm
- Re: [Easy400Group] Need help on "DoCmd&quo... Elbert Cook
- Re: [Easy400Group] Need help on "DoCmd... Ignatius Kalapurakkel
- Re: [Easy400Group] Need help on "DoCmd... Ignatius Kalapurakkel
- [Easy400Group] Re: Need help on "D... taustin288
- Re: [Easy400Group] Need help on "D... Elbert Cook
- Re: [Easy400Group] Need help on &qu... Ignatius Kalapurakkel
- Re: [Easy400Group] Need help o... Elbert Cook
- Re: [Easy400Group] Need he... Ignatius Kalapurakkel
- Re: [Easy400Group] Need help on "D... Mel Rothman
- Re: [Easy400Group] Need help on &qu... Ignatius Kalapurakkel
