PUBLIC LAWS-CH. 512-AUG. 7, 1947 as his new running mate the line officer who is the running mate of the officer of the same grade in his corps immediately senior to such staff officer in the position to which advanced; if there be no such senior staff officer, the staff officer who is so advanced shall have assigned as his new running mate the line officer who is the running mate in the grade concerned of the staff officer of the same corps imme- diately junior to such staff officer in the position to which advanced. (13) The line officer running mate assigned a staff officer pursuant to this section shall, if the staff officer be one designated for limited duty, be an officer also designated for limited duty; in all other cases the running mate shall be a line officer not restricted in the perform- ance of duty. (14) Officers of the staff corps serving in the grade of rear admiral shall receive the pay and allowances prescribed by law for rear admirals of the upper half from the date on which their respective running mates enter the upper half of the list of rear admirals, but not prior to the date of the vacancy the staff officer was promoted to fill. Line officer running mate. Payandallowances. RETIREMENT OF OFFICERS BELOW THE GRADE OF REAR ADMIRAL Applicability. SEC. 312. (a) The provisions of this section shall be applicable only to officers holding permanent appointments on the active list of the Regular Navy. Captains. (b) Captains of the Medical Service Corps shall be placed on the retired list on June 30 of the fiscal year in which they complete thirty- one years of total commissioned service, and captains of the line and of each other corps whose names, on June 30 of the fiscal year in which they complete thirty-one years of total commissioned service, as defined Ant, for line officers in section 102 of title I and for staff officers in section Ante, p. 816. 202 of title II of this Act, are not on a promotion list, shall, subject Ante, p.8. to the provisions of paragraph (1) of subsection 311 (c) of this title, if not otherwise retired pursuant to law, be placed on the retired list on that date: Provided,That an officer who has lost numbers or prece- dence shall not be placed on the retired list by reason of completion of thirty-one years of total commissioned service as so defined until June 30 of the fiscal year in which he completes five years of service in the grade of captain: Providedfurther, That captains not restricted in the performance of duty whose names, on June 30 of the fiscal year in which they complete thirty years of total commissioned service, are not on a promotion list, shall, subject to the provisions of para- Ante, p. M. 853 Ant, . graph (1) of subsection 311 (c), if not otherwise retired pursuant to law, and if they shall have twice failed of selection for temporary promotion to rear admiral, be placed on the retired list on that date: CoSintinuation on Provided further, That not to exceed the following numbers of cap- tains, recommended for continuation on the active list in the report of a selection board as approved by the President, may be so continued until the report of the next succeeding selection board is approved but no such captain shall be continued on the active list beyond June 30 of the fiscal year in which he shall have completed thirty-five years of total commissioned service as so defined: Ten designated for engi- neering duty, five designated for aeronautical engineering duty, ten designated for special duty, twenty-two in the Medical Corps, twenty- two in the Supply Corps, twenty-five in the Chaplain Corps, seven in the Civil Engineer Corps, and twelve in the Dental Corps: And provided further, That a captain so continued on the active list shall, if not again recommended for continuation on the active list in the approved report of the next succeeding selection board, thereafter be carried in excess of the number authorized to be so continued and shall be placed on the retired list on June 30 of the then current fiscal year. 858 [61 STAT.