Not the way to go
1 Put your function key detinitions on a seperate record – using lines 23 & 24 —
I would name the records so it’s apparent they are a set, like x001sfl and x001ctl and x001ft (footer)
2. Put an overlay keyword in your control record
3. Immediately before the exfmt of the control record
write the footer record.
Note – the control record + the displayed line of the subfile cannot extend into the lines used by the footer record. So if the footer is on lines 23 and 24 then the subfile should not use those lines.
Vatchy is on to it, I missed the windows part — the window WDWTITLE below should do the trick nicely.