Your syntax is wrong Functions are functions and cannot be stored in variables Here this is how you would do it: DEF SAY S$ ?S$ END SAY "Hi"