Chapter 8, “Using Dynamic SQL Commands” explains how to use Client-Library cursor commands in your application. See “Program structure for the prepare-and-execute method” for the typical call sequence.