Home |

REORG - MV AOS/VS

type ICX ANALYZE (filename)
press <ENTER>

    File information will be displayed. Write down the record length and press <ENTER>. The key layout will be displayed next. Write down the second number (relative position in file) and then the first number (key length in bytes) with a . between them. Label this as the primary key or K. Continue collecting the information on the alternate keys as above. When the screen displays Y or N to print, that will indicate that is all of the keys. Now you have the record length and key structure needed to reorg the file.

type DEL/C NX XD
press <ENTER>

    NX ? type Y
    press <ENTER>

    XD ? type Y>
    press <ENTER>

type RENAME filename.NX NX
press <ENTER>

type RENAME filename.XD XD
press <ENTER>

    type REORG/A XD/D filename/I _._/K _._/A _._/A_._/A
    press <ENTER>

Note: The values in the blanks are obtained from the ANALYZE procedure. For example, to reorg GNCVLOG you would type:

    REORG/A XD/D GNCVLOG/I 1.7/K 13.4/A

The reorg procedure will display a counter as it reads records and writes them out to the file. After the reorg is finished, you should be able to continue with normal operations.

Updated February 18, 2005 at 11:11 a.m.