We consider the optimal program control problem for a stochastic state- and control-nonlinear jump diffusion system with a given performance functional linear-quadratic in the state. Necessary and sufficient local optimality conditions are obtained, and a numerical procedure for the successive improvement of a given control program is developed. Examples of optimization problems for a switched system with random initial data and terminal invariance are considered as applications.