STRPCO ERROR

Tags:
AS/400 commands
STRPCCMD
STRPCO
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

Thanks. We'll let you know when a new response is added.

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>

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • TomLiotta
    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
    125,585 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following