just another way of doing it: setvar afile,'gp' +'![hpyear * 10000 + hpmonth * 100 + hpdate]' Michael