Command function

285 pts.
Tags:
AS/400
Command function
STRPCCMD
Explain the function of STRPCCMD command in AS400??

Software/Hardware used:
AS400

Answer Wiki

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

The Start PC Command (STRPCCMD) command allows you to run a single application, a DOS command, or an OS/2 command on an attached personal computer.

The Start Client Access Organizer (STRPCO) command starts the Client Access Organizer on the host system.

Note: The STRPCO CL command must be issued before running the STRPCCMD CL command.

Find the sample code below.

<pre> DCL VAR(&CMD) TYPE(*CHAR) LEN(500) CHGVAR VAR(&CMD) VALUE(‘START ‘ || + ‘http://www.google.co.in’) STRPCO PCTA(*NO) MONMSG MSGID(IWS4010) STRPCCMD PCCMD(&CMD) PAUSE(*NO) </pre>

Pradeep.

Discuss This Question: 4  Replies

 
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
  • deepu9321
    DCL        VAR(&CMD) TYPE(*CHAR) LEN(500)
    CHGVAR     VAR(&CMD) VALUE('START ' || 'http://www.google.co.in')
    STRPCO     PCTA(*NO)     
    MONMSG MSGID(IWS4010)                                
    STRPCCMD   PCCMD(&CMD) PAUSE(*NO) 
    Pradeep.
    3,870 pointsBadges:
    report
  • philpl1jb
    On command line type the command that you are interested in and type F4 then move to the top of the display and type F1.
    50,505 pointsBadges:
    report
  • TomLiotta
    The STRPCCMD command can execute a PC command back on a PC that is running a telnet session through a telnet emulator if the emulator supports STRPCCMD. The command works by sending a specially crafted 5250 screen back to the emulator. The PC command will run under the user who is logged onto the PC. Tom
    125,585 pointsBadges:
    report
  • Bigmac46
    It is a very powerful command that can be used to do a lot of things on a PC from a menu option on an AS400(whoops) screen. Look up RUNDLL and be amazed at the options available. a few examples - Open pc printer foldes, BEEP, shutdown, open Word with specified file, Open excel with specfied file, force a logoff , disable/enable mouse and/or keyboard. specify default printer. and much more. Can be very useful in an enviornment where PCs lockdown are needed to prevent the USERs named "NOT ME" and I DON"T KNOW" from accidently screwing up stuff.
    1,000 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