Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Submit JCL to INTRDR and check the status of job

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Submit JCL to INTRDR and check the status of job
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: 1567
Location: Andromeda Galaxy

PostPosted: Sat Jun 16, 2018 1:42 am    Post subject:
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    Post subject:
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: 1567
Location: Andromeda Galaxy

PostPosted: Sat Jun 16, 2018 2:02 am    Post subject:
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: 714
Location: Pennsylvania

PostPosted: Mon Jun 18, 2018 4:20 pm    Post subject:
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

Senior Member


Joined: 21 Sep 2010
Posts: 2038
Location: NY,USA

PostPosted: Mon Jun 18, 2018 9:55 pm    Post subject:
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: 8731
Location: Welsh Wales

PostPosted: Tue Jun 19, 2018 11:42 am    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. IO-PCB status code AL srinianusuya IMS DB/DC 1 Mon Aug 06, 2018 10:26 am
No new posts Generate and submit JCL and step dyna... vnktrrd DFSORT/ICETOOL 11 Wed Jul 25, 2018 11:31 pm
No new posts JCL COND CODE check juares castro JCL & VSAM 5 Tue Jun 26, 2018 7:43 pm
No new posts Bill Woodger Status? ApexNC DFSORT/ICETOOL 11 Tue Jun 05, 2018 5:17 pm
This topic is locked: you cannot edit posts or make replies. GDG gen check using REXX raghuraman123 CLIST & REXX 6 Wed Apr 18, 2018 9:18 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us