Trouble appending string constant to variable

Hi. I define my variables as:

month=jul
DD=17
YEAR=2012
transmission_file_name_only=test_$month$DD$YEAR_partial.dat

However when I run my script the variable 'transmission_file_name_only' resolves to:

File "/downloads/test_jul17.dat" not found.

How can I append this '_partial' string to the $YEAR variable successfully?

Any help would be greatly appreciated.

transmission_file_name_only=test_$month$DD${YEAR}_partial.dat
1 Like

Try...

 transmission_file_name_only="test_"$month$DD$YEAR"_partial.dat";
echo $transmission_file_name_only; 
1 Like

Thank you both. Have it working now. Thanks for your time.