IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Submit JCL to INTRDR and check the status of job


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
srajendran2

New User


Joined: 13 May 2008
Posts: 56
Location: Chennai

PostPosted: Sat Jun 16, 2018 1:30 am
Reply with quote

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
View user's profile Send private message
Pandora-Box

Global Moderator


Joined: 07 Sep 2006
Posts: 1592
Location: Andromeda Galaxy

PostPosted: Sat Jun 16, 2018 1:42 am
Reply with quote

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
View user's profile Send private message
srajendran2

New User


Joined: 13 May 2008
Posts: 56
Location: Chennai

PostPosted: Sat Jun 16, 2018 1:48 am
Reply with 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.
Back to top
View user's profile Send private message
Pandora-Box

Global Moderator


Joined: 07 Sep 2006
Posts: 1592
Location: Andromeda Galaxy

PostPosted: Sat Jun 16, 2018 2:02 am
Reply with quote

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
View user's profile Send private message
daveporcelan

Active Member


Joined: 01 Dec 2006
Posts: 792
Location: Pennsylvania

PostPosted: Mon Jun 18, 2018 4:20 pm
Reply with quote

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
View user's profile Send private message
Rohit Umarjikar

Global Moderator


Joined: 21 Sep 2010
Posts: 3049
Location: NYC,USA

PostPosted: Mon Jun 18, 2018 9:55 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Jun 19, 2018 11:42 am
Reply with quote

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
View user's profile Send private message
srajendran2

New User


Joined: 13 May 2008
Posts: 56
Location: Chennai

PostPosted: Thu Jun 21, 2018 12:16 am
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Job completes in JES, but the status ... IBM Tools 1
No new posts SCOPE PENDING option -check data DB2 2
No new posts Check data with Exception Table DB2 0
No new posts Submit multiple jobs from a library t... JCL & VSAM 14
No new posts How to check whether who renamed the ... JCL & VSAM 3
Search our Forums:

Back to Top