The example1.pco shows how to use cursors in an interactive query program. The program:
Displays a list of book types; the user selects one type
Displays all titles in the selected book type; prompts for a title ID
Displays detailed information about the selected title and continues prompting for title IDs
Exits the program when Enter is pressed at a prompt