The example1.pco sample program shows how to use regular, non-scrollable cursors in an interactive query program. The regular, non-scrollable cursor sample program:
Displays a list of book types; user selects one type
Displays all titles in the selected book type and prompts for a title ID
Displays detailed information about the selected title and continues prompting for title IDs
Exits when Return is pressed at a prompt
Sample programs for scrollable cursors are example3.pco and example4.pco. The scrollable cursor sample programs:
Declare INSENSITIVE or SEMI_SENSITIVE scrollable cursors
Display and print selections of book titles based upon hard-coded FETCHES with a direction and/or offset
Exit when the program is finished