The example4.c sample demonstrates row buffering. This program sends a query to Adaptive Server, buffers the returned rows, and allows you to examine them interactively.