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 WAIT EVENT

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

New User


Joined: 09 Dec 2013
Posts: 4
Location: India

PostPosted: Sat Sep 20, 2014 4:41 pm    Post subject: CICS WAIT EVENT
Reply with quote

Hi..

Am working on a request which involves the following:

I will have a JCL which formats say 1000 records (inquiries) from a file and writes all the records to a MQ. Once it's done MQ will trigger an Online CICS tran/program (Say A) to read each inquiry and links to another program (B) which gets the response from an external source.

There will be a huge no. of transactions so EXCI is not employed.

Now my request is when Program A calls Program B, Program A should wait for 3 seconds for getting a response from Program B.

Program B can be called from different sources, it is like an outgoing gateway. So, when Program B is in delay for Source-1's request, if another request comes from Source-2 in the same time, will it be in a abnormal state that Source-2's transaction will fail?

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.

As we are at the initial state of development, any suggestions will be greatly appreciated.

Thanks
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 6:54 pm    Post subject: Re: CICS WAIT EVENT
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 3 seconds for getting a response from Program B.

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 in the same time, will it be in a abnormal state that Source-2's transaction will fail?

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.

As we are at the initial state of development, any suggestions will be greatly appreciated.

Thanks
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7931
Location: Bellevue, IA

PostPosted: Sat Sep 20, 2014 9:58 pm    Post subject:
Reply with quote

Why are you posting the same thing multiple times and in multiple places in this forum? This is a volunteer forum, and you may -- or may not -- get ANY answers to your question since replies are done if / when the responder has time and information about the question. You definitely will not get faster answers by posting the same question multiple times (actually, this will probably delay any responses as people don't want to be bothered with your lack of understanding of the rules).

Furthermore, your explanation is woefully inadequate to explain what you want. Is program A using EXEC CICS CALL or a program CALL or EXEC CICS XCTL or some other way of calling program B? If you use EXEC CICS CALL, for example, your question makes ABSOLUTELY no sense as program A will not get control back until program B completes and does an EXEC CICS RETURN -- so a DELAY of any sort won't help you and in fact most likely would not be needed.

I don't understand what source-1 and source-2 are, but CICS normally starts each program invoked via transaction with its own copy of working storage and so if the invocations are independent, the code should execute independently.

Why do you want to use WAIT EVENT? From the CICS Application Programming Reference manual:
Quote:
WAIT EVENT synchronizes a task with the completion of an event initiated by the same task or by another task. The event would normally be the posting, at the expiration time, of a timer-event control area provided in response to a POST command, as described in "POST" in topic 1.139. The WAIT EVENT command provides a method of directly relinquishing control to some other task until the event being waited on is completed. CICS includes the addresses of all ECBs passed by WAIT EVENT commands of current tasks in the ECBLIST passed by CICS to the WAIT facility when it runs out of work.
So what task are you trying to synchronize your work with? As I said, you haven't really explained what you are wanting to do in enough detail for us to answer you.
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 transaction slow response time vasanthz All Other Mainframe Topics 1 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
No new posts CICS Roll back partially - Need to re... dwijadas CICS 4 Wed Nov 16, 2016 4:30 pm


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