William J. Armstrong Jr., 62, a retired federal government program analyst, died of cancer Saturday at the National Institutes of Health Clinical Center.

He retired last year after 34 years of government service, most of it with the Department of the Air Force.

Born in Washington, Mrs. Armstrong was a graduate of old Central High School. He received bachelor's and master's degrees from Southeastern Univerisity and a master's degree also from the former Columbus University.

Mr. Armstrong was a graduate of the Washington Bible College.

He had been a member for 51 years of the Wallace Memorial United Presbyterian Church in Hyattsville and had served for 19 years as clerk of the session of the church.

He had been associated with Boy Scout activities for more than 30 years.

He is survived by his wife, Eleanor Corbin Armstrong, and a daugher, Mary E. Armstrong, of the home in Silver Spring; two sons, William J. III, of Silver Spring, and David G., of Beverly, Mass; a sister, Elizabeth Lentz, and a brother, James P., of Rockville, and two grandchildren.

The family suggests that expressions of sympathy may be in the form of contributions to a memorial fund in his name at memorial fund in his name at Wallace Memorial Church.