Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

CICS Delay will hold resources?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
View previous topic :: :: View next topic  
Author Message
s390

New User


Joined: 23 Aug 2005
Posts: 3

PostPosted: Thu Sep 15, 2005 2:15 pm    Post subject: CICS Delay will hold resources?
Reply with quote

Can Anyone tell me EXEC CICS DELAY will hold resource once after the command has been executed??

Thanks In advance
Hari
Back to top
View user's profile Send private message

radhakrishnan82

Active User


Joined: 31 Mar 2005
Posts: 436
Location: chennai, India

PostPosted: Thu Sep 15, 2005 3:01 pm    Post subject:
Reply with quote

I assume your question as "during the execution of CICS DELAY"

EXEC CICS DELAY has a counter that will start counting until it reaches the specified time limit.So it tells that it still utilising the resource during its execution.
Back to top
View user's profile Send private message
happyend

New User


Joined: 18 Aug 2005
Posts: 10
Location: Bangalore,India

PostPosted: Mon Sep 19, 2005 6:05 pm    Post subject: Re: CICS Delay
Reply with quote

I also had a similar issue. I was using EXEC CICS Delay between to LINKS. After the delay statement got executed, the PGM1 was still utilizing the resources and hence the Pgm 2 could not complete functioning. I had to use EXEC CICS RETURN in order to free the resources used by PGM1
Back to top
View user's profile Send private message
p.m.s.Reddy
Warnings : 1

New User


Joined: 20 Sep 2005
Posts: 11
Location: chennai

PostPosted: Tue Sep 20, 2005 11:36 am    Post subject:
Reply with quote

Hi Guys,

I Have a doubt regarding this.so as radha krishanan said that the propgram1 will hold the resourses until the delay is reached.Suppouse if the program is gloing in to infinite loop,what will happenn??How can i suspend that particular task?
Back to top
View user's profile Send private message
happyend

New User


Joined: 18 Aug 2005
Posts: 10
Location: Bangalore,India

PostPosted: Tue Sep 20, 2005 12:23 pm    Post subject: Re: CICS Delay
Reply with quote

It should give an AICA abend.
Back to top
View user's profile Send private message
Skss

New User


Joined: 16 Feb 2010
Posts: 46
Location: India

PostPosted: Thu Apr 07, 2011 9:44 pm    Post subject:
Reply with quote

Can I display 1 message and then after a certin amount of delay and then display another message?

to elaborate: If I am passing a display message to a variable and display that and then want to display another message overriding the previous message with another message by giving it a delay of say 5 seconds.

Please help me with your suggestions.

Thank you
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2502
Location: Atlanta, Georgia, USA

PostPosted: Thu Apr 07, 2011 10:16 pm    Post subject: Reply to: CICS Delay will hold resources?
Reply with quote

If you assign a unique REQID to a given DELAY API, another task can CANCEL this delay (the unique REQID is needed for the CANCEL API), allowing the DELAY to terminate earlier than what's been defined to the associated INTERVAL value.

DELAY's are synchronous to the issuing task. In other words, if a task goes into a DELAY, this issuing task cannot CANCEL its own DELAY (a/k/a Itself) and will wait until the INTERVAL value has expired. The CANCEL would need to be performed by another task, providing the REQID (mandatory) and associated TRANSID (optional, but recommended) are known.

If a NOTFND condition is raised after the CANCEL, either the information is wrong or the task is no longer delayed (Interval has expired).

Generally speaking, DELAY's are not normally recommended....
Back to top
View user's profile Send private message
sureshjimmy

New User


Joined: 09 Dec 2013
Posts: 4
Location: India

PostPosted: Sat Sep 20, 2014 7:14 pm    Post subject:
Reply with quote

Hi..

Am working on a CICS programming request which involves the following:

When Program A calls Program B, Program A should wait for a default 3 seconds. After 3 seconds I will read the file for validating Success/Error/pending status. Will a DELAY works here?

Program A can be linked from different sources, it is like an outgoing gateway. So, when Program A is in delay for Source-1's request, if another request comes from Source-2 at the same time, I need to keep Source-2's request to be on WAIT until the Source-1's delay of 3 seconds is over. There can be N no. of Sources.

I haven't used WAIT EVENT but I want to know if this can be employed here? Also, didn't find any good examples of WAIT EVENT.

Please advise on how to handle the above.


Thanks
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2502
Location: Atlanta, Georgia, USA

PostPosted: Sat Sep 20, 2014 11:53 pm    Post subject: Reply to: CICS Delay will hold resources?
Reply with quote

I think you should review ENQ/DEQ API's as they seem to be more of what you're looking for.

The DELAY API won't hold resources. It just suspends the issuing task for a period of time which you've placed in the INTERVAL keyword.

You should speak with your CICS Sysprog(s) or Tech Support personnel regarding what you're trying to accomplish.
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 -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts CICS to Webservices safexc CICS 1 Sun Jan 22, 2017 5:49 pm
No new posts CICS transaction slow response time vasanthz All Other Mainframe Topics 3 Thu Jan 19, 2017 1:31 am
No new posts INDEPENDENT CICS TS 4.1 MRO REGION UP... Kyle Carroll CICS 0 Wed Dec 14, 2016 6:55 pm
No new posts CICS START AND CANCEL blayek CICS 1 Wed Dec 07, 2016 3:27 am
No new posts How does a called pgm know if its cal... Graeme Westerman COBOL Programming 4 Tue Nov 29, 2016 9:25 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us