In the drive-beam accelerator of the compact linear collider (CLIC) the trains fill every second bucket. If the bunches in the one train occupy even buckets they will occupy odd ones in the next train and vice versa. This encoding is achieved by a phase switch at the injector. An RF-kicker running at half the linac frequency and a delay loop are used to separate the trains after the acceleration. This paper shows how the delay loop and the phase switch can be used to compensate the main-linac beam loading. It is also possible to shorten the final pulse which would otherwise be fixed by geometry