If the output type is OvationPro, you should have either created your own DDL header, or output the standard one with filewriteovnhead().
Likewise, if the output type is HTML, you should have either created your own HTML header, or output the standard one with filewritehtmlhead().
This command reads the cached frame, thus you must call storeframe() after modifying the frame contents in order to ensure the cache is up to date with respect to your modifications.