==Creating portcoexitmaster==
Portcoexitmaster contains the portcokey with an exitflag, ipoflag and maflag and an exit value. It is built off the companybaseipomasmaster table so be sure you've built this first. Note that the amounts are actually in m (not k) in the input.
ALTER TABLE portcoexitbuild RENAME TO portcoexitbuildbak;