ibm midrange - How do i call an AS400 program from command prompt of windows? -
i trying call program using command prompt using command
"quote rcmd call pgm(lib/mypgm)"
getting error :
how perform action ?
syntactically, command correct. error occurred while server trying call program. text message cee9901 is:
message . . . . : application error. &1 unmonitored &2 @ statement &5, instruction &3. cause . . . . . : application ended abnormally because exception occurred , not handled. name of program unhandled exception sent &6 &8 &12. program stopped @ high-level language statement number(s) &11 @ time message sent. if more 1 statement number shown, program optimized ile program. optimization not allow single statement number determined. if *n shown value, means real value not available. recovery . . . : see low level messages listed locate cause of exception. correct errors, , try request again.
so, @ point, need examine iseries job log. this, need find job among different ftp jobs out there. execute command (if have authority):
wrkactjob job(qtftp*)
find job current user
set login used ftp. examine job log of job. see real error caused cee9901 generate.
if not have authority wrkactjob command, alternative print job log , @ resulting spooled file. use these ftp commands:
quot rcmd chgjob log(4 00 *seclvl) logclpgm(*yes) quot rcmd dspjoblog output(*print)
then in spooled files qpjoblog. should go spooled files of whichever user logged ftp with. as/400 command (from green screen) find it:
wrksplf select(*current *all *all qtftp*)
without seeing job log, can't of cause. however, errors of type, in experience, caused missing libraries in library list. may have first execute addlible
commands using quot rcmd
ftp command. this:
quot rcmd addlible mypgmlib quot rcmd addlible mydatalib
followed by:
quot rcmd call mylib/mypgm
Comments
Post a Comment