The following examples illustrate many of the points covered previously. In these examples, a simple pair of procedures is developed to logically unload and reload a database.
These procedures unload any NDB to a VSAM ESDS. The unload is in RID sequence, unless the database has a sequence key, in which case it is sequenced by that key.
Note: This procedure is described to illustrate some of the features of NDBs. It is not recommended as the best way to unload files. The command NDB UNLOAD unloads an NDB in exactly the same format as the following procedure. The NDB ALTER command can be used to speed up a reload.