The Andy Griffith Show - A doctor.
Hogan’s Heroes - In the army.
Gomer Pyle U.S.M.C. - In the army
M*A*S*H - An army chaplain.
Good Times - An army doctor.
I am sensing a theme here. :P
(There are more but these are the ones I have caps for. He was a doctor in The Fortune Cookie, a priest on Mad About You, a priest in Heaven Sent, in the army in The Private Navy of Sgt. O’Farrell, a doctor in The Perils of Pauline, a priest in Church Basement Ladies…)