in reply to Help with Back Ticks and calling a program with variables...

Um, I don't see any backticks there, but the reason the variables aren't getting interpolated is that you're using single quotes instead of double quotes. Just do this: system ("$datpath/rdes  $datpath/xxx$INI_CR2K_Number.xml $INI_Ref_Number $INI_Company_Code  > error.dat ");

HTH