You try to check it using ‘Netstat *cnn’
Find the ip of your pc that started the exe file, if the list contain the IP and the status is established. Then I think your exe is running
Other than issuing a remote call across the system to some program that can tell you if the .EXE is active or opening a socket to the .EXE to see if it responds, there is no way. Those are the ways it is done. Neither is particularly appropriate for CL.
Note that V5R4 ILE CL is technically capable of sockets. But if you’re good enough with sockets to do it in CL, other labguages are far better choices.
A RUNRMTCMD command might be applicable for a remote program call, and it’s CL. Of course, there has to be something that can be called on the other end. If it happens to be the .EXE and it can return an appropriate “I am ready” acknowledgment, that would be enough.