Hello Alex, have you tried using EXECUTE? var1='var_to_pass' com='execname'+', var1' PRINT, com res=EXECUTE(com) Cheers Andy