We are using the below code, but the ORACLE team getting "Permission Denied" message.
They are able to send file using SFTP, but they are unable to trigger job on mainframe. Please help us in solving this problem.
# Toggle on the showall option so all options are displayed on the ls /+ command
ls /+showall
# Set the transfer mode to text and turn on the jesjobwait option
ls /+mode=text,jesjobwait
# List all CoZ SFTP options
ls /+
# Change directory to the special pseudo directory for submitting Mainframe jobs
cd //-jes.intrdr
# myjob is a "handle" that must be specified
# The "handle" can be 1-8 characters
# File jesjob.txt contains the JCL to run on the Mainframe job
put jesjob.txt myjob
# list all jobs (in this case only 1) related to the myjob handle
ls -l
# Get and delete the cozlog
get /+/error.log
!cat error.log
rm /export/home/WFCTCDC/.ssh/cozlog.**
quit
Trying trigger a mainframe job from a ORACLE applicaiton/Unix
-
- Posts: 1
- Joined: Mon Jun 19, 2017 10:31 am
Re: Trying trigger a mainframe job from a ORACLE applicaiton/Unix
Since your company has a Co:Z Enterprise License and Support agreement, please ask one of your support contacts to open a ticket.
- include the output that your are getting from the remote sftp script
- include the Co:Z SFTP server log file
- include the output that your are getting from the remote sftp script
- include the Co:Z SFTP server log file