When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.
What is $YEAR supposed to do? If it's a builtin variable to be expanded on the commandline, I am not aware of any such thing (not before 8.02 either). Do you confuse it with $TODAY maybe?
Welcome to the script console!> print(date());AN ERROR HAS OCCURED [the index 'date' does not exist]CALLSTACK*FUNCTION [main()] ScriptConsole line [1]LOCALS[this] TABLEAN ERROR HAS OCCURED [the index 'date' does not exist]CALLSTACK*FUNCTION [main()] ScriptConsole line [1]LOCALS[this] TABLE