R.P.G.,
I'm not sure if this is what you are looking for but here is a code snippet
* */
* */
* --------- Start PCO --------------------------------------------- */
* */
STRPCO PCTA(*NO)
MONMSG MSGID(IWS4010 CPA0701)
STRPCCMD PCCMD('C:\PROGRA~1\MICROS~1\OFFICE\EXCEL.EXE +
\\KVMETRO\ISS\AS400\DBELCHER\DOUG\XLS\DSR.XLT')
PAUSE(*NO)
GOTO EOJ
Depending on whether or not you have Client Access or Client Access Express
this will start PCO and execute the STRPCCMD.
The menu option would look like a regular menu option
Selection. . . . 11 Description. Execute Excel DSR Template
Job to Execute . J66010 Batch. . . . 0 Highlight. 0 A J K DP F
Menu to Execute. Help Inst Key Sel Lock .
Option Code. . . Option Key . Version. .
Appl Override. . 55 Run Time Msg Cntry/Reg
There are a number of different ways to trigger a .bat file either from the
AS/400 (through the example above if you have Client Access) or through
RUNRMTCMD. Also a number of ways to trigger it on the PC side. It really
depends on your configuration and what you want to do. For all non-JDE
specific information you can probably go to the iSeries Network site
(
http://www.iseriesnetwork.com/) and look through their article archive and
forums. You might also check out the Google Advanced Group Search
(
http://www.google.com/advanced_group_search?hl=en) to find other examples.
Douglas Belcher
KV Pharmaceutical Inc.
St. Louis MO
Opinions expressed are not necessarily those of my employer