Figure 8-12 shows a code excerpt that illustrates how to use the locator structure to update the cat_descr column of the catalog table from an open file.
The updcd_nf program in Figure 8-14 first performs a SELECT statement on the catalog table for a catalog number that the user enters in response to a prompt. The SELECT statement returns the catalog_num and cat_descr columns. The prdesc() function (page 8-66) displays the current content of cat_descr.