If the offense was committed within the exclusive jurisdiction of another county of this state, the court must direct the defendant to be committed for such time as it deems reasonable to await a warrant from the proper county for his arrest, or if the offense be a misdemeanor only, it may admit him to bail in an undertaking, with sufficient sureties, that he will, within such time as the court may appoint, render himself amenable to a warrant for his arrest from the proper county, and if not sooner arrested thereon, will attend at the office of the sheriff of the county where the trial was had, at a time particularly specified in the undertaking, to surrender himself upon the warrant, if issued, or that his bail will forfeit such sum as the court may fix, and to be mentioned in the undertaking; and the clerk must forthwith transmit a certified copy of the indictment or information, and all the papers in the action filed with him, to the district attorney of the proper county, the expense of which transmission is chargeable to the county.
Okla. Stat. tit. 22, § 846