IBM i Run PC Commands
To run PC commands from the IBM i the PC Organizer needs to be started. Message IWS4010 needs to be monitored for in the event that the PC organizer is already started. Next, issue STRPCCMD with the command you would like to run and PAUSE(*NO) as a parameter so that the interactive process does not halt.
PGM
STRPCO PCTA(*NO)
MONMSG MSGID(IWS4010)
STRPCCMD PCCMD('emacs &') PAUSE(*NO)
ENDPGM