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
 
Calling program is taking so much time

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
kappa

New User


Joined: 24 Aug 2006
Posts: 2

PostPosted: Fri Sep 22, 2006 4:06 am    Post subject: Calling program is taking so much time
Reply with quote

Hi all,

I have got a problem.

Program A is calling another program B. Program B is accessing database and it is taking so much time and it is not returning any thing to calling program.

Can we write a cobol program such that the main program abends if the program B is not returning anything even after 5 mins?

Sridhar kappa.
Back to top
View user's profile Send private message

UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 757
Location: Germany

PostPosted: Fri Sep 22, 2006 1:33 pm    Post subject:
Reply with quote

Hi !

I think that would not solve the problem. Better have a nearer look at your programm-b. Do an interaktive trace an correct the programm, because i think it's not probably working.

Regards, UmeySan
Back to top
View user's profile Send private message
shreevamsi

Active User


Joined: 23 Feb 2006
Posts: 305
Location: Hyderabad,India

PostPosted: Fri Sep 22, 2006 2:51 pm    Post subject:
Reply with quote

Why don't u assign TIME=5 parameter in your JCl that executes your Cobol program.
Back to top
View user's profile Send private message
kappa

New User


Joined: 24 Aug 2006
Posts: 2

PostPosted: Fri Sep 22, 2006 10:25 pm    Post subject: Re: Calling program is taking so much time
Reply with quote

But we have around 1 million records and everytime we cannot decide what time exactly we need to code in JCL. If we code more time, it will take more time if we have 1000 such records in it...
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Sat Sep 23, 2006 7:54 pm    Post subject:
Reply with quote

Kapper,

You don't exactly say what pgmB is attempting, but database access should not take that kind of time. Umeysam is correct. Either you are making an inappropriate DB request or something is wrong w/pgmB.
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 How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
This topic is locked: you cannot edit posts or make replies. 00D3003B - time outs in DB2 when invo... chavinash2004 DB2 2 Mon Oct 09, 2017 4:39 pm
No new posts Accessing CICS tran with map from JCL... navdeepaggarwal CICS 5 Tue Oct 03, 2017 6:15 pm
No new posts VSAM RLS Wait time blayek JCL & VSAM 2 Mon Oct 02, 2017 9:05 pm
No new posts Comparing 2 Files using Current time arunsoods SYNCSORT 9 Fri Sep 22, 2017 6:00 pm

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