The STRWINSRV command can be used to start programs on a WindowsEnabler/400 Server PC.
STRWINSRV LOC(*DFT) is the same as STRWINPGM.
STRWINSRV
PC program . . . . . . . . . . . CMD __________________
__________________________________________________________________
__________________________________________________________________
____________________________________________________________
PC location for program to run . LOC __________
Wait for PC program to end . . . WAIT ____
Receive time-out value . . . . . TIMEOUT ______
Run time-out value . . . . . . . RUNTIMEOUT ______
Print document . . . . . . . . . PRINT _
If you specify WAIT(*YES) you can retrieve the return value of a program request. For an internal command request the value of WAIT is ignored and interpreted as if it was *YES. A return value from a program request or internal command request can be retrieved from the SWP0101 completion message or from the WINRES dataarea in QTEMP.
See also the chapter Return values.