I believe the error is the exit status passed on from the HELLO_WORLD_JCL.ksh.
Possibly an executable crashed with SIGKILL (==9) and that status was returned by the ksh script.
I notice that your smj command declaration did not pass in any options to the ksh script using "-o". If the ksh script calls an executable that requires an input option
(e.g. a COBOL simpcl executable) it may have crashed. Check if your ksh script needs to pass in options and also check if a core file was generated.
I think I have got whats the problem .
Syntax for calling m_ProgramExec is "m_ProgramExec [OPTIONS] Program [Args .....] ". And when this API is called it checks the number of arguments and I think its expecting miminum 2 args . When I ran the converted .ksh with m_ProgramExec SAMPLE it gave error as specified above. But when I corrected the converted .ksh with m_ProgramExec SAMPLE "agrs" . Then it ran successfully. (though the arguments were dummy)
Thanks Bob for your help.