patnekar Beginner
Joined: 27 Jan 2003 Posts: 41 Topics: 16
|
Posted: Tue Mar 16, 2004 10:55 am Post subject: Batch Reports in CA7 |
|
|
Hi,
Is it possible to schedule a job, which will report the job status in CA7.
In detail
I want the report for my jobs to have their current status at a given time
Sample
Job A :: complete
Job B :: waiting on Job X
Job C :: abend U1035
If anyone can give the details, it is very much appreciated.
Thanks
Puru |
|
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Tue Mar 16, 2004 11:40 am Post subject: |
|
|
Patnekar,
You can use CA-7'S SASSBSTR program for generating the desired reports.Here is a sample job which will give you the desired results.
Code: |
//EXTRACT EXEC PGM=SASSBSTR,PARM=1
//JOBLIB DD DSN=ca7.loadlib,DISP=SHR
//UCC7CMDS DD DSN=ca7.communications.data.set,DISP=SHR
//BATCHIN DD DSN=batch.input.data.set,DISP=SHR
//BATCHOUT DD DSN=batch.output.data.set,DISP=SHR
//SYSOUT DD SYSOUT=*
//SYSPRINT DD DSN=YOUR OUTPUT REPORT,
// DISP=(NEW,CATLG,DELETE),
// UNIT=SYSDA,
// SPACE=(CYL,(5,1),RLSE),
// DCB=(RECFM=FBA,LRECL=133,BLKSIZE=3990)
//SYSIN DD *
/LOGON
LQ,JOB=JOB*
/LOGOFF
|
Change the Sysin parameters according to your needs. Let us you have 5 jobs in the pattern
PATJOB1
PATJOB2
PATJOB3
PATJOB4
PATJOB5
Then your sysin cards will be as follows
Code: |
//SYSIN DD *
/LOGON
LQ,JOB=PATJOB*
/LOGOFF
|
This will extract all the records from ca-7 database which match the job name criteria (patjob*).
Hope this helps...
Cheers
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|