Here is one I used to execute Excel from a CL, but any PC cmd can be executed.
PGM
STRPCO
MONMSG MSGID(IWS4010)
/*IF PC ORGANIZER IS ALREADY STARTED,CONTINUE */
/*EXECUTE EXCEL FROM XP PC */
/*----------------------------------*/
STRPCCMD PCCMD('START EXCEL.EXE') PAUSE(*YES)
/*--------------------------------------------------*/
Last Wiki Answer Submitted: October 28, 2004 1:20 pm by Deannakon0 pts.
If you live outside the United States, by submitting your email address you consent to having your personal data transferred to and processed in the United States.
you have to start the PC organizer first with the command
STRPCO
then use the command STRPCCMD to run your pc command
here is an example where I needed to build a file and push it to the PC for an application.
PGM
CLRPFM POSP00
CALL PGM(POS00) PARM(&CORP &DIVI &CATA)
STRPCO
MONMSG IWS4010 /*if STRPCO has already been started */
STRPCCMD PCCMD(‘C:POS.BAT’)
ENDPGM
Use RUNRMTCMD. The PC will need to have the iSeries Access for Windows Remote Command service (CWBRXD.EXE) running.
you have to start the PC organizer first with the command
STRPCO
then use the command STRPCCMD to run your pc command
here is an example where I needed to build a file and push it to the PC for an application.
PGM
CLRPFM POSP00
CALL PGM(POS00) PARM(&CORP &DIVI &CATA)
STRPCO
MONMSG IWS4010 /*if STRPCO has already been started */
STRPCCMD PCCMD(‘C:POS.BAT’)
ENDPGM