Structure and design

In addition to your main access program that handles communication with the back-end system, you might need to provide programs for other functions.

These functions are as follows:
Begin session
Handle begin-session processing.
Unsolicited data
Handle unsolicited inbound data that arrives when there is no conversation.
End session
Handle end of conversation and end of session processing.

These functions could be combined in one program or implemented in separate programs with individual transaction names. There may be any number of each function, again according to your requirements and preferences. Suggestions about the various possibilities are given later.

As the application programmer, you will always write the main access programs. Sometimes the system programmer provides any special functions that are required; otherwise you would be responsible for these. Even if you are writing only the main access program, you need to be aware of what these special functions do and how they affect how you communicate with the back-end system. Because the use of these special functions is controlled by the pools that you use, you need to liase with the system programmers or administrators who set them up.

Several different styles of access program are possible:
One-out one-in conversational
One program performs the complete conversation with the target and each conversation has a single transmission to and from the back-end system.
Conversational
One program performs the complete conversation with the target with multiple transmissions to and from the back-end system, waiting each time for the inbound data.
Pseudoconversational
Here, one program sends data to the target and requests CICS® to start another program when the inbound data arrives.

The section beginning with FEPI key stroke and screen-image applications and ending with Specialized FEPI functions describes the various features of writing application programs. A set of sample programs is available to help you to get started; these are supplied as source code on the distribution tape. For details, see FEPI samples.



dfhp7k7.html | Timestamp icon Last updated: Monday, 5 June 2017