MFPLI10035S VARYING BIT strings not supported. VARYING attribute in the declaration of "variable-name" has been ignored.

Only CHARACTER or GRAPHIC string variables may be declared VARYING.
Resolution:
Remove the VARYING attribute and maintain a separate length variable holding the number of bits currently in use.