View previous topic :: View next topic
|
Author |
Message |
kumjara
New User
Joined: 04 Feb 2008 Posts: 5 Location: India
|
|
|
|
Hi Guys,
I have the following jobs in SPOOl
JOBNAME JOB ID
TESTJOB1 JOB38042
TESTJOB2 JOB38043
In my REXX program , I use the following
Address TSO STATUS TESTJOB1
The above piece of code always picks the old version of the job TESTJOB1- JOB38042. I expected the program to pick me the latest job JOB38043..
Can you please suggest me how to code to pick the latest job version?
Thanks!!! appreciate your time and response |
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
JOB38043 = TESTJOB2
So what is the problem? |
|
Back to top |
|
|
kumjara
New User
Joined: 04 Feb 2008 Posts: 5 Location: India
|
|
|
|
Sorry My mistake .. Both JOB38042(failed run) and JOB38043(successful rerun) have the same job name TESTJOB1
JOBNAME JOB ID
TESTJOB1 JOB38042
TESTJOB1 JOB38043
In my REXX program , I use the following
Address TSO STATUS TESTJOB1
The above piece of code always picks the old version of the job TESTJOB1- JOB38042. I expected the program to pick me the latest job JOB38043..
Can you please suggest me how to code to pick the latest job version? |
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
As far as I know, status will return all jobs with the given name.
But let us see your REXX coding maybe there is some logic not
working as expected. |
|
Back to top |
|
|
TheMFKid
New User
Joined: 20 Nov 2013 Posts: 91 Location: India
|
|
|
|
TSO STATUS returns all jobs in spool with the given name. In REXX, you need to properly trap the output using OUTTRAP and display/use. |
|
Back to top |
|
|
|