Batch Job to Extract Status of Jobs

Post Reply
User avatar
sajeesh
Nouveau
Nouveau
Posts: 2
Joined: 25 May 2012 12:00

Batch Job to Extract Status of Jobs

Post by sajeesh » 25 May 2012 8:51

Hi,

I am looking for a way to extract the status of a certain set of jobs from Active environment of Control-M scheduler. Either a z/OS batch JCL or a REXX code. Can somebody help me out to get this done?

Thanks,
Sajeesh.

User avatar
philhaut
Nouveau
Nouveau
Posts: 32
Joined: 06 Feb 2007 12:00
Location: VALENCIENNES

Post by philhaut » 25 May 2012 10:22

Hi

you could use the command ctmpsm or sql command

ie
ctmpsm -listall|grep "jobname"

sql
select STATE,STATUS FROM CMR_AJF where JOBNAME = 'jobname' and ODATE= '2012XXXX';

STATUS=Y ==> OK
STATUS=N ==> NOTOK

STATE=4 ==>RUNNING
STATE=1 ==> WAIT CONFIRM

........

User avatar
sajeesh
Nouveau
Nouveau
Posts: 2
Joined: 25 May 2012 12:00

Post by sajeesh » 25 May 2012 12:22

Hi philhaut,

Thanks for your reply.

My environment is z/OS and I am looking for a batch JCL or REXX code to get the details.


Cheers,
Sajeesh.

User avatar
DocGoo
Nouveau
Nouveau
Posts: 73
Joined: 08 Sep 2010 12:00

Post by DocGoo » 15 Feb 2013 7:53

What are all the possible state codes and thier meaning?

Post Reply