You can create a dynamic buffer at run time using this syntax:
CREATE BUFFER buffer-handle FOR TABLE table-expression.

The table-expression can be either a literal database table or temp-table name (both in quotation marks) or a variable or other expression that evaluates to a table or temp-table at run time.

You can also access the handle of any static buffer at run time:
buffer-handle = BUFFER buffer-name:HANDLE.

Dynamic buffers are useful only when you really need to define the table name for a buffer at run time. You will find that in many cases you can simply get the handle to a static buffer and use that handle’s attributes and methods to manipulate the buffer dynamically, without creating a dynamic buffer at all.