275 pts.
 Command function
Explain the function of STRPCCMD command in AS400??

Software/Hardware used:
AS400
ASKED: December 19, 2011  7:36 AM
UPDATED: March 17, 2012  6:12 AM

Answer Wiki:
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.
Last Wiki Answer Submitted:  December 19, 2011  8:53 am  by  deepu9321   3,520 pts.
All Answer Wiki Contributors:  deepu9321   3,520 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


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


 
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,520 pts.

 

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.

 44,630 pts.

 

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

 110,155 pts.

 

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 pts.