Start of changeStart of change

Designing a channel: best practices

About this task

It's possible to use containers to pass data in the same way as communication areas (COMMAREAs) have traditionally been used. However, channels have several advantages over COMMAREAs (see Benefits of channels) and it pays to design your channels to make the most of these improvements.

At the end of a DPL call, input containers that have not been changed by the server program are not returned to the client. Input containers whose contents have been changed by the server program, and containers created by the server program, are returned. Therefore, for optimal DPL performance:

Here are some general tips on designing a channel. They include and expand on the recommendations for achieving optimal DPL performance.

For information about migrating programs that use COMMAREAs to use channels instead, see Migration to the new function.

End of changeEnd of change [[ Contents Previous Page | Next Page Index ]]