IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

CICS Delay will hold resources?


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
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
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: 435
Location: chennai, India

PostPosted: Thu Sep 15, 2005 3:01 pm
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
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
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
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
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: 2501
Location: Atlanta, Georgia, USA

PostPosted: Thu Apr 07, 2011 10:16 pm
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
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: 2501
Location: Atlanta, Georgia, USA

PostPosted: Sat Sep 20, 2014 11:53 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CICS

 


Similar Topics
Topic Forum Replies
No new posts Using API Gateway from CICS program CICS 0
No new posts Calling an Open C library function in... CICS 1
No new posts How to 'Ping' a CICS region in JCL CICS 2
No new posts Parallelization in CICS to reduce res... CICS 4
No new posts How to avoid duplicating a CICS Web S... CICS 0
Search our Forums:

Back to Top