Variable expansion in darktable

You have curly brackets around JOBCODE where you should have parenthesis. Try $(JOBCODE)