multiply variable

I need to multiply the value of a variable and then store it in another variable. I have EXPHOURINSEC=$(($EXPDATEHOUR * 3600)) but i get an error saying the * is unexpected.

Im using ksh

It should be

EXPHOURINSEC=$((EXPDATEHOUR * 3600)) 

Try :
EXPHOURINSEC=$((${EXPDATEHOUR}*3600))
without blanks

thanks. its always the little things!

What little thing solved it for you? Your original line and all of the alternatives posted should work in ksh.

You would not have got the error message you gave with the line you posted if it was run in a POSIX shell (ksh, bash, etc.)

One alternative posted, EXPHOURINSEC=$((EXPDATEHOUR * 3600)), while a valid POSIX command, would not have worked in /bin/sh on a *BSD system.