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

Moderator


Joined: 07 Sep 2006
Posts: 1565
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

Moderator


Joined: 07 Sep 2006
Posts: 1565
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: 747
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: 2567
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: 8794
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 FILE STATUS - 39 ON VARIABLE LENGTH V... COBOL Programming 2
No new posts Want to check if trailer count is 0 a... JCL & VSAM 10
No new posts Submit Print Job For PDS Member With ... TSO/ISPF 17
No new posts Trying to submit COBOL PGM - JCL ERRO... JCL & VSAM 5
This topic is locked: you cannot edit posts or make replies. VSE COBOL - File Status 46 when readi... COBOL Programming 8
Search our Forums:

Back to Top