No of visitors who read this post: 726
Type: Question
Author: Luke barnes
No votes yet

Please describe the internal logic and functioning of the Start PC command or the STRPCCMD. I am using AS/400 and would like to know how it gets connected to other PC commands? Can anyone help me?

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

# Comment Id: 42556

Hopefully you are using a CL program when issuing the STRPCCMD command. Just follow the procedure below to solve your problem:

  • First you will need to define a field that is 123 characters long so as to hold your command - do not make it longer for it will cause an error

DCL &CMD *CHAR 123

DCL &VARIABLE *CHAR 25 

  • You then place your command into that field as shown below:


CHGVAR &CMD VALUE("Start http:\\IP address\My webpage.asp?NSN=" *CAT &VARIABLE *CAT " *NO PAUSE"

  • When you have done that, you will then run the command below:


STRPCCMD &CMD


In case that fails to work then I will refer you to the website to have a look:

Regards
Thompson Locker