Quick search by citation:

10 U.S. Code § 14518 - Continuation of officers to complete disciplinary action

The Secretary concerned may delay the separation or retirement under this chapter of an officer against whom an action has been commenced with a view to trying the officer by court-martial. Any such delay may continue until the completion of the disciplinary action against the officer.