SQL REPORT for CA7 job and the COND-CODE and RO value on the job definition screen
search cancel

SQL REPORT for CA7 job and the COND-CODE and RO value on the job definition screen

book

Article ID: 268427

calendar_today

Updated On:

Products

CA 7 Workload Automation

Issue/Introduction

This is sample SQL to list all jobs and their condition code and relational operator values from the CA7_JOB table.

Environment

Release : 12.0,12.1

Resolution

You will need to modify the STEPLIB and change 'xxxxxxxx' to your logical database name:

//STEP1 EXEC PGM=DBSQLPR                                   
//STEPLIB  DD  DISP=SHR,DSN=your.CUSLIB  
//         DD  DISP=SHR,DSN=your.CAAXLOAD 
//SYSPRINT DD SYSOUT=*                                     
//STDOUT DD SYSOUT=*                                       
//OPTIONS DD *                                             
PRTWIDTH=255                                               
INPUTWIDTH=70                                              
ROWLIMIT=5000                                              
AUTHID=MFWA                                                
NOTYPE                                                     
//SYSIN DD *                                               
SELECT JOB,COND_CODE,REL_OPERATOR FROM CA7_JOB
WHERE  DB = 'xxxxxxxx' ;