View previous topic :: View next topic
|
Author |
Message |
srajendran2
New User
Joined: 13 May 2008 Posts: 56 Location: Chennai
|
|
|
|
Hi,
After a JCL is submitted from COBOL to INTRDR, is there a way we can check the status of the job by communicating with JES from COBOL?
Thanks |
|
Back to top |
|
|
Pandora-Box
Global Moderator
Joined: 07 Sep 2006 Posts: 1592 Location: Andromeda Galaxy
|
|
|
|
Can you explain what are you going to do checking the status of the submitted job?
Answering this might help you get better suggestions |
|
Back to top |
|
|
srajendran2
New User
Joined: 13 May 2008 Posts: 56 Location: Chennai
|
|
|
|
The program submits a copy JCL. The output is a GDG. We just want to make sure the copy is successful without manually monitoring it every time. |
|
Back to top |
|
|
Pandora-Box
Global Moderator
Joined: 07 Sep 2006 Posts: 1592 Location: Andromeda Galaxy
|
|
|
|
Re-designing this to have the COPY job scheduled(Using your shop's scheduler) is more sensible option which would ease your job of monitoring the job completion |
|
Back to top |
|
|
daveporcelan
Active Member
Joined: 01 Dec 2006 Posts: 792 Location: Pennsylvania
|
|
|
|
You could add two steps to the end of your COPY job.
//TEST1 IF (COPYSTEP.RC EQ 0)
send good email
//ELSETEST ELSE
send bad email
//ENDTEST1 ENDIF |
|
Back to top |
|
|
Rohit Umarjikar
Global Moderator
Joined: 21 Sep 2010 Posts: 3077 Location: NYC,USA
|
|
|
|
Quote: |
The program submits a copy JCL. The output is a GDG. We just want to make sure the copy is successful without manually monitoring it every time. |
Then use scheduler at first place. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
Got to agree - the scheduler is the way to go.
Why add something that may need maintaining down the line in years to come when that is already adequately catered for in the scheduling software. |
|
Back to top |
|
|
srajendran2
New User
Joined: 13 May 2008 Posts: 56 Location: Chennai
|
|
|
|
Thanks for all the suggestions. I went with scheduler as suggested. I also tried to call Rexx from COBOL using IRXJCL which could check the status of the job in spool for a job name passed and it was successful. |
|
Back to top |
|
|
|