Rational Developer for System z

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:
  • All the Business Components of a Folder – whatever the node type – must use the same Data Structure to define a server buffer.
  • This rule applies also to a Business Component called by another Business Component which uses a server buffer. The called Business Component must also use the same server buffer.
  • A Services Manager does not need any particular option to call a Business Component which uses a server buffer. However, when the server buffer structure is modified, its maximum length is changed. In this case, you must regenerate the Folder (Services Manager) attached to the Business Components.
  • To call a Business Component which uses a server buffer, a TUI client must use a server monitor.

Procedure

  1. Open theG Lines tab of a Server Dialog or Business Component. To do so, select a Server Dialog or Business Component in the Design Explorer view and double-click. Otherwise, right-click and select Open in the menu. Then access its -G Lines tab from the Overview tab or directly by clicking the -G Lines tab.
  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:

Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)