Creating a server buffer

You can define a server buffer in a Server Dialog or a Business Component.

About this task

It is sometimes necessary that Business Components, whether they are called by the same Services Manager or called by other Business Components (through secondary level calls), share some data.

With the server buffer, you define a memory area shared between the Business Components which run a request.

The following rules apply to a server buffer:
  • When a Business Component is called by another Business Component which uses a server buffer, the called Business Component must use the same server buffer.
  • To call a Business Component which uses a server buffer, a TUI client must use a server monitor.

Procedure

  1. Open the -G Lines tab of a Server Dialog or Business Component.
  2. Open the -GO Lines section located in this tab.
  3. On an O-type line, enter the SERVBUFF=xx option (where xx is the Data Structure which represents the server buffer).
  4. In each Business Component, you can select some Segments of this Data Structure by specifying, on an O-type line, the SEGMBUFF=s1s2s3s4… option (where s1, s2, s3 … are the last two characters of the Segment codes). If you do not enter this option, all the Segments of the Data Structure are selected.

Results

Technical information about the generation of the server buffer:

Feedback