zosftplib submit_wait_job(jcl) function does not receive JES output

893 Views Asked by At

I have a python zosftplib function call that submits a MVS job successfully, but it does not recognize that the job completed and it does not receive the JES output from the job. I can successfully make the MVS FTP connection and can upload and download files.

The code looks like this: job = Myzftp.submit_wait_job(jcl)

The call eventually displays the following error message.

File "C:\Python27\lib\site-packages\zosftplib.py", line 410, in submit_wait_job %(msg, resp)) ZftpError: 'submit_wait_job error: 550 JesPutGet aborted, job not found (last response:250 Transfer completed successfully.)'

Any suggestions would be helpful on how I can resolve this.

1

There are 1 best solutions below

0
On BEST ANSWER

Working with MVS FTP and JES can be very specific. For example my MVS ID was MVSIDD. My jobcard had a jobname of MVSIDDXY. So the submit_wait_job() function would submit the job correctly and it would run successfully. The problem came with returning the JES output back to FTP. It was expecting a jobname with my id and a single character not two. By changing the jobname in the jobcard to MVSIDDX the function worked as expected and waited until the job was over and then returned all the JES output with it.