Any way to find the return code of the remote JOB

Discussion of Co:Z sftp, a port of OpenSSH sftp for z/OS
Post Reply
rakesh
Posts: 6
Joined: Tue Apr 21, 2020 12:24 pm

Any way to find the return code of the remote JOB

Post by rakesh »

Hi,

I am submitting a job to remote Lpar. I see the commands for retrieving the JOB details like DDs and entire job output to local lpar but is there a way to inquire the RC of the job and set the RC of local job accordingly?

My local job have 2 steps, first step submits the job to remote Lpar. I like to run the step 2 only if the RC of the remote job is zero.
rakesh
Posts: 6
Joined: Tue Apr 21, 2020 12:24 pm

Re: Any way to find the return code of the remote JOB

Post by rakesh »

Hi,
Do we have this feature available? or under works for the new version? Or is there an alternative i could use.
dovetail
Site Admin
Posts: 2022
Joined: Thu Jul 29, 2004 12:12 pm

Re: Any way to find the return code of the remote JOB

Post by dovetail »

Have you looked at this section in the User's Guide?

https://dovetail.com/docs/sftp/using.ht ... _jobstatus
rakesh
Posts: 6
Joined: Tue Apr 21, 2020 12:24 pm

Re: Any way to find the return code of the remote JOB

Post by rakesh »

Hi,

Yeah, i looked at that in the doc. ls - al lists the status of the job. How do evaluate the RC of the job without writing this ls -al output to a dataset and writing some rexx. Is there a command or variable to check the RC of the job.
dovetail
Site Admin
Posts: 2022
Joined: Thu Jul 29, 2004 12:12 pm

Re: Any way to find the return code of the remote JOB

Post by dovetail »

There isn't any mechanism other than getting the output from the "ls" command and processing it.
Post Reply