In the following example, a DBF file is generated and downloaded from a mainframe on a weekly basis, overwriting the previous week’s file. The DBF has an .MDX file that must be manually regenerated for each week’s download before processing the downloaded data. The beginning of the process looks like this:

use DOWNLOAD index PROCESS.MDX exclusive

reindex

set order to NAME

*-- Rest of process