It is the duty of all district attorneys prosecuting in the several courts, as each criminal prosecution is disposed of by trial, removal, continuance or otherwise, to call, in open court, and announce the discharge of witnesses for the State, either finally or otherwise as the disposition of the case may require.
N.C. Gen. Stat. § 6-62