ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

STRPCCMD STRPCO - DOS Window etc

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • STRPCCMD STRPCO - DOS Window etc

    I have been asked to allow users to select an email from the green screen and launch Outlook. I have a test program to run the following commands which do actually work bringing up Outlook.

    command = 'STRPCO PCTA(*NO)';
    callp(e) qcmdexc(command:cmdlen);

    command = 'STRPCCMD PCCMD(''START mailto:reyfarm@yahoo.com'')
    callp(e) qcmdexc(command:cmdlen);


    But...a couple issues:
    1. There is a DOS window displaying after they exit from Outlook
    2. I can only run the process once. A second time gives me the following error:
    Message . . . . : PC Organizer is already active for device QPADEV004S.
    Cause . . . . . : Attempting to start PC Organizer when it is already active
    for the device.

    Any suggestions how to handle there issues?

  • #2
    Re: STRPCCMD STRPCO - DOS Window etc

    Sorry....the second issue I was having is already taken care of I believe by my use of callp(e)....
    Still would like to eliminate that DOS window from appearing...

    Comment


    • #3
      Re: STRPCCMD STRPCO - DOS Window etc

      Hi kreynolds:

      try adding the stuff in bold

      STRPCO
      MONMSG CPF0000
      command = 'STRPCCMD PCCMD(''START mailto:reyfarm@yahoo.com'') pause(*no)

      Best of luck
      GLS

      < e d i t > sorry i didn't notice you were running this from RPG....monmsg will not help you < / e d i t >
      Last edited by GLS400; May 20, 2015, 12:24 PM.
      The problem with quotes on the internet is that it is hard to verify their authenticity.....Abraham Lincoln

      Comment


      • #4
        Re: STRPCCMD STRPCO - DOS Window etc

        Can you do a CALLP on a STRPCO command? Really?

        As for the Monitoring for the message, use the C function to call your command and you can trap for any returned error.

        Comment


        • #5
          Re: STRPCCMD STRPCO - DOS Window etc

          THank you so much! I got it to work by adding PAUSE(*NO)...

          Comment

          Working...
          X