Hi,
In CICS, how we define a program as asynchronous or in synchronous mode in CICS? Is it some way of programming or CICS identify whether the program is called in asynchronous or in synchronous mode its own?
Regards
Define a program as asynchronous or in synchronous in CICS..
-
- New Member
- Posts: 7
- Joined: Wed Jan 20, 2016 12:26 am
- Robert Sample
- Global Moderator
- Posts: 1885
- Joined: Fri Jun 28, 2013 1:22 am
- Location: Dubuque Iowa
Re: Define a program as asynchronous or in synchronous in CICS..
First, asynchronous / synchronous coding refers ONLY to CICS intersystem communications (ISC) and not terminal-based transactions. Hence it is only needed when the program needs to connect to another system, either in the company or to another company's system. You don't define programs to be asynchronous or synchronous.
Second, if the connection is TCP/IP then it is asynchronous -- period. Synchronous programs require SNA connections.
Third, if the program uses EXEC CICS SEND and EXEC CICS RECEIVE commands, it is synchronous; if it uses EXEC CICS START and EXEC CICS RETRIEVE then it is asynchronous.
The determination of synchronous / asynchronous is made by the system support group in conjunction with the application development group and depends entirely upon the specifics of the situation. From a practical standpoint for existing code, you can look at the API calls to figure out if it is asynchronous or not.
Second, if the connection is TCP/IP then it is asynchronous -- period. Synchronous programs require SNA connections.
Third, if the program uses EXEC CICS SEND and EXEC CICS RECEIVE commands, it is synchronous; if it uses EXEC CICS START and EXEC CICS RETRIEVE then it is asynchronous.
The determination of synchronous / asynchronous is made by the system support group in conjunction with the application development group and depends entirely upon the specifics of the situation. From a practical standpoint for existing code, you can look at the API calls to figure out if it is asynchronous or not.
Create an account or sign in to join the discussion
You need to be a member in order to post a reply
Create an account
Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute