STRPCO ERROR
My test program uses STRPCO and then STRPCCMD PCCMD("C:test.bat").When I call the program twice,it will ocurse error.Error message likes "Client access AS400 Oganizer already active in device XXXXXXXXX".I don't know why.Thanks.

Software/Hardware used:
sofeware
ASKED: December 14, 2009  2:44 PM
UPDATED: December 15, 2009  1:29 AM

Answer Wiki:
Add a MONMSG for message ID IWS4010 after the STRPCO command. See example below. <pre> pgm DCL VAR(&CMD) TYPE(*CHAR) LEN(256) STRPCO MONMSG MSGID(IWS4010) CHGVAR VAR(&CMD) VALUE('rundll32 + shell32,Control_RunDLL timedate.cpl') STRPCCMD PCCMD(&CMD) PAUSE(*NO) endpgm </pre>
Last Wiki Answer Submitted:  December 14, 2009  9:48 pm  by  Teandy   5,830 pts.
All Answer Wiki Contributors:  Teandy   5,830 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

It’s because you can only “Start the PC Organizer” (STRPCO) once in a job. If it’s already started, it’ll send a message telling you so.

Tom

 108,135 pts.