I dislike the GENDB process due to this very situation - you do not have "control"!!!!! Try using the ComWin "Macro" process, or use Copy/Paste and utilize the "execute clipboard - amo by amo" technique. Both of these processes allow YOU to be in control, because YOU are controlling the processing of the 4K database MANUALLY. This process may take some time if the database is HUGE, but the process is actually very quick if you can establish a "Direct" session via the Atlantic LAN using ComWin/Expert Access "Connect". Typically it takes about 5 minutes to process 2000 AMO commands.
To use either of these processes, you will need to clean up the REGEN file by removing the "M2 1 " type characters on each line, and the gibberish at the top of the file, so that you have nothing but AMO commands, starting with the ADD-CODEW command. The best tool to use for this cleanup is "Wordpad", using the FIND/REPLACE process to remove "M1 1 " and "M2 1 ".
To use the ComWin "Macro" tool (you must have an active session), click "Macro" on the top action bar, then "Start", then "Open". Locate your edited REGEN file. You may need to change the "file type" from "commandfiles" to "All files". When your REGEN file loads into the "Macro" window, look it over to ensure that everything looks OK, then click "Start" then "Start". AMO by AMO will be processed, until the final command.
When completed, you must type "ACT-USSU:LTG,1;" to load this new database. After the system comes UP, be sure to perform two EXE-UPDAT:BP,ALL; commands and two EXE-UPDAT:A1,ALL; commands!!!!!
If there are any errors encountered during the macro procedure, you will need to quickly STOP sending AMOs by clicking the red STOP sign, then go to ComWin and resolve the issue, then return to the Macro window, locate the next command, and continue. Using "Macro" for the first time can be tricky. Typically if you click the STOP sign, the macro window may disappear, and you cannot locate it. No worries - from the ComWin window, click "Window", then select "Macro Window", and voila - the Macro window re-appears. Also, in the Macro window, there is a very useful tool called "Go To Line..." located under "Start". So if you encounter a problem during the processing of your REGEN file, and the script blasts through several hundred commands before you notice, FIRST repair the problem in ComWin, then locate the next command in your REGEN/command file (use your mouse and click on the command that should be processed next -you will see the "line" number in the lower LEFT corner of the window), then use the "Go To Line" tool to reset the Macro to begin from the appropriate line number.
Or if you do not like using this Macro tool, try using simple "copy/paste". Again, the command file must be cleaned up, and must start with the ADD-CODEW command (unless this is HiPath 4000 V6!!!!).
Use the Windows "copy" process to copy ALL of the AMO commands. Then open an active ComWin session. In the "buffer" area (where you type), RIGHT-CLICK, and select "EXECUTE CLIPBOARD" -> "AMO by AMO".
Now watch as the commands are processed. Again, you will need to repair any problems as they are encountered, then restart the copy/paste procedure from where the process was last successful. As with the Macro process, you MUST type "ACT-USSU:LTG,1;" to load this new database. After the system comes UP, be sure to perform two EXE-UPDAT:BP,ALL; commands and two EXE-UPDAT:A1,ALL; commands!!!!!
Good luck!!!!!!!!!!!!!!!