I have a small snipet which issues some console command and traps the output into a dataset. But the rexx fails sometimes due to the fact that the there are one or more EMCS consoles active across my sysplex environment and gets terminated with message :
ISF032I CONSOLE SYSMVS8 ACTIVATE FAILED, RETURN CODE 0004, REASON CODE 0000
Regards,
Viswa