The variables "x" and "y" must exist prior to the reload. Add them empty in the Settings menu, Variable Overview.
The script should use SET instead of LET, without need of concatenationwith the "&". The /v parameter does pass a value to a variable, but if this variable doesn't exist, it does not create it.
TRACE x = $(x); SET y = $(x)$(x); //LET y = '$(x)' & '$(x)'; // This will do as well, but seems more complex TRACE y = $(y);
Hope that helps.
Well, how about that - you're right, Miguel! Thanks.
I hadn't expected that behaviour - in other contexts QlikView will quite happily create variables on the fly, so I'd expected that command-line variables would be created, ready to use. Seems a bit odd to me, really, but there you go - it's a QlikView thing!