normal. you can also use

Declare_DataFile CUST

to declare a file without opening which is what CLEAR file actually does.

programs do not execute in procedural manner so the compiler couldnt know if at a certain point a file will be open