;NOKSAM

- copies all records in c hronological sequence, including deleted records. - if omitted, only active records are copied.

FCOPY default, which copies active records in the primary k ey sequence When using the KSAM options of F COPY, consider the following information:

KEY and NOKSAM are mutually exclusiv e options; use them only when the FROM ￿le is a KSAM ￿le.

NOKSAM processes the FROM ￿le as an MPE/iX ￿le. Use it to cop y all data in a KSAM data ￿le, including the logically deleted records.

Do not use the NOKSAM option to copy a KSAM ￿le with variable-length records.

If you use the NOKSAM option to reload a ￿le due to k ey￿le corruption, y ou must also specify NOUSERLABELS . Using the SUBSET option ensures that only v alid (non-deleted) records are copied.

When copying an existing KSAM ￿le, y ou can let FCOPY create a TO ￿le for you by using the syntax:

>FROM=KSAMDATA;TO=(NDATA,NKEY)

where NDATA and NKEY are previously non-existen t KSAM data and key ￿elds.

Figure 7-2 sho ws an example of loading a KSAM ￿le. The diagram sho ws how the key ￿le is built on KSAM ￿le information speci￿ed in the KSAMUTIL command BUILD.

Figure 7-2. Loading a KSAM File

7-4 Data Management