Script files may not support variables (it's possible they bypass spellcast). You can check if the variable was set properly by typing $docname into the chat - it should relay whatever you set it to. If it does, I'm going to assume that the script directly inputting the command bypasses checking for variables.
XI Wiki



