Portal | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum 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: 1568
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: 1568
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: 741
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

Global Moderator


Joined: 21 Sep 2010
Posts: 2467
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: 8796
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
No new posts Want to check if trailer count is 0 a... rohanthengal JCL & VSAM 10 Fri Jun 26, 2020 10:47 am
No new posts Submit Print Job For PDS Member With ... AllenSieracki TSO/ISPF 17 Fri Apr 10, 2020 9:31 pm
No new posts Trying to submit COBOL PGM - JCL ERRO... sandeep prajapati JCL & VSAM 5 Tue Mar 24, 2020 11:21 pm
This topic is locked: you cannot edit posts or make replies. VSE COBOL - File Status 46 when readi... dennis larson COBOL Programming 8 Fri Jan 03, 2020 11:46 pm
No new posts How to check ASRA ABEND TivyaWorld CICS 2 Fri Aug 09, 2019 1:08 pm

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