On Dynamic Programming in Economic Models Governed by DDEs