Mike, I've found that QUIT TO also triggers the memory leak. It seems that any of the tricks to force memory cleanup ultimately are self defeating.
I am using a startup shortcut to your specifications, but with custom autoexec.rbd and config.rbd setting up the DOS session, do there is no batch file. Here is the code I used to test this: set var vcount int if vcount is null then set var vcount = 1 disc set multi on conn concomp cls endif set var vcount = (.vcount + 1) if vcount > 100000 then goto endloop endif select count(*) from customer wri .vcount quit to testmenu label endloop clear var vcount return Dennis McGrath

