Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Address TSO STATUS JOBNAME - Not getting the latest JobID

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
kumjara

New User


Joined: 04 Feb 2008
Posts: 5
Location: India

PostPosted: Thu Feb 27, 2014 12:46 pm    Post subject: Address TSO STATUS JOBNAME - Not getting the latest JobID
Reply with quote

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
View user's profile Send private message

PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2422
Location: Netherlands, Amstelveen

PostPosted: Thu Feb 27, 2014 1:21 pm    Post subject: Reply to: Address TSO STATUS JOBNAME - Not getting the lates
Reply with quote

JOB38043 = TESTJOB2

So what is the problem?
Back to top
View user's profile Send private message
kumjara

New User


Joined: 04 Feb 2008
Posts: 5
Location: India

PostPosted: Thu Feb 27, 2014 1:26 pm    Post subject:
Reply with quote

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
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2422
Location: Netherlands, Amstelveen

PostPosted: Thu Feb 27, 2014 1:36 pm    Post subject:
Reply with quote

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
View user's profile Send private message
TheMFKid

New User


Joined: 20 Nov 2013
Posts: 91
Location: India

PostPosted: Thu Feb 27, 2014 2:39 pm    Post subject:
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts execute APP if they are not ADDRESS T... italo_pm CLIST & REXX 3 Fri Aug 12, 2016 2:15 am
This topic is locked: you cannot edit posts or make replies. Get and display content of an address... lind sh CICS 1 Mon Aug 08, 2016 9:18 am
No new posts How to resolve IMS DB status code FM Priyanka Boga IMS DB/DC 3 Fri Jun 10, 2016 1:54 pm
No new posts JCL to fetch schedule status from act... parasmalik20 CA Products 1 Thu Jun 02, 2016 7:11 pm
No new posts READQ TS returning inconsistent addre... moezbud CICS 14 Wed May 04, 2016 1:09 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us