Page 1 of 1

Batch Job to Extract Status of Jobs

Posted: 25 May 2012 8:51
by sajeesh
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.

Posted: 25 May 2012 10:22
by philhaut
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

........

Posted: 25 May 2012 12:22
by sajeesh
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.

Posted: 15 Feb 2013 7:53
by DocGoo
What are all the possible state codes and thier meaning?