View previous topic :: View next topic
|
Author |
Message |
s390
New User
Joined: 23 Aug 2005 Posts: 3
|
|
|
|
Can Anyone tell me EXEC CICS DELAY will hold resource once after the command has been executed??
Thanks In advance
Hari |
|
Back to top |
|
|
radhakrishnan82
Active User
Joined: 31 Mar 2005 Posts: 435 Location: chennai, India
|
|
|
|
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 |
|
|
happyend
New User
Joined: 18 Aug 2005 Posts: 10 Location: Bangalore,India
|
|
|
|
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 |
|
|
p.m.s.Reddy Warnings : 1 New User
Joined: 20 Sep 2005 Posts: 11 Location: chennai
|
|
|
|
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 |
|
|
happyend
New User
Joined: 18 Aug 2005 Posts: 10 Location: Bangalore,India
|
|
|
|
It should give an AICA abend. |
|
Back to top |
|
|
Skss
New User
Joined: 16 Feb 2010 Posts: 46 Location: India
|
|
|
|
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 |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
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 |
|
|
sureshjimmy
New User
Joined: 09 Dec 2013 Posts: 4 Location: India
|
|
|
|
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 |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
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 |
|
|
|