Specified stream is not attached to a buffer or referent.
#6005 Run-time catchable error
Specified stream is not attached to a buffer or referent.
Additional Information
For stream 'X'.
Explanation
The %g format, the clear action, the
save, the length of actions and the stream string
comparisons can only be used with closed referent or closed buffer streams.