knyhus...

The environment variable won't show-up in your current process if your just running the kix script from the command line.

Try running your script again with the SET "TEST=@USERID" statement, then open up a new command window and check it there !

Shawn.