We consider program motion of Hamiltonian system and solve the problem of construction asymptotically stability programm motion. The programm motion can be any function. Control is received in the method and the method of limiting functions and systems. In this case we use the Lyapunov’s functions having constant signs derivatives. The following examples are considered: stabilization of program motions of homogeneous rod of variable length and stabilization of program motions of mathematical pendulum variable length in the rotation plane.