2 Replies Latest reply on Sep 7, 2021 5:49 AM by Andy Bristow

    CALL PGM(XXX) PARM('hello world')

    Alessandro Corti Seasoned Veteran

      I would like to call a AS/400 RPG program in a workflow using PowerExchange For i5/OS 10.4.0.

      In other word, in a PWC Workflow can I execute che following AS400 command:

       

      CALL PGM(TESTCALL) PARM('hello world')

        • 1. Re: CALL PGM(XXX) PARM('hello world')
          Bibek Sahoo Active Member

          Here is H2L document attached for the cobol program that you can call using Power Exchnage.

          Its for ZOS, But i believe we can try for AS400 as well. You can also get the details from Navigator guide

          "Calling a User Exit Program by Using the PowerExchange CallProg Function"

           

          Abstract

           

          Regards,

          BIbek

          • 2. Re: CALL PGM(XXX) PARM('hello world')
            Andy Bristow Guru

            Check out DTLREXE in the PWX Utilities manual.

             

            Create a file called rexecmd.txt:

             

            uid=ABRISTOW pwd=XXXXXX loc=AS400NODE prog=system parms="CALL PGM(DTLCRYPX) PARM(PSWD)"

             

            Then call DTLREXE from the command line:

             

            C:\Informatica\PowerExchange>dtlrexe cs=rexecmd.txt

            P2X-00116 KEY Warning - license(1) has  25 day(s) before expiration.

            P2X-00750 DTLREXE Input LOC=AS400NODE, PROG=SYSTEM, PARMS=CALL PGM(DTLCRYPX) PARM(PSWD), UID=<ABRISTOW>.

            P2X-00755 DTLREXE Command OK!