Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
Using KSAM XL: 900 Series HP 3000 Computer Systems > Chapter 7 Protecting the File and Its Data

Recovering from Index Corruption

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Index

If the file management subsystem detects file corruption, it does not allow writing, updating, and deletion activities. The file manager attempts to honor read requests, but the attempt may not be successful.

If index entries have been corrupted, create a new KSAM XL file using the BUILD command. When the file is built, load the data from the original file using the FCOPY utility with the KEY=0 option. The KEY=0 option does not access the indexes in the source file. It merely transfers data records from source to target, creating new index entries after each record is copied.

The following routine creates a new file and loads it with the data records from the original accounts receivable file.

Figure 7-1 Index Corruption Recovery

:BUILD ARMSTR.MGR.AR;REC=-80,,F,ASCII;DEV=DISC;&

DISC=100;KSAMXL;KEY=(N,4,6;&

B,10,25,RDUP;&

N,65,5,RDUP;&

B,70,3,RDUP;&

FIRSTREC=1;REUSE



:FCOPY

>FROM=OLDMSTR.MGR.AR;TO=(ARMSTR.MGR.AR);KEY=0

>EXIT
Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© Hewlett-Packard Development Company, L.P.