As usual while waiting for the next release - don't forget to check the nightly builds in the forum.
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