<正> This paper studies the optimal controls of stochastic systems of functional type withend constraints. The systems considered may be degenerate and the. control region may benonconvex. A stochastic maximum principle is derived. The method is based on the idea thatstochastic systems are essentially infinite dimensional systems.