When a judicial official orders that a defendant be imprisoned he must issue an appropriate written commitment order. When the commitment is to a sentence of imprisonment, the commitment must include the identification and class of the offense or offenses for which the defendant was convicted and, if the sentences are consecutive, the maximum sentence allowed by law upon conviction of each offense for the punishment range used to impose the sentence for the class of offense and prior record or conviction level, and, if the sentences are concurrent or consolidated, the longest of the maximum sentences allowed by law for the classes of offense and prior record or conviction levels upon conviction of any of the offenses. If the person sentenced to imprisonment is under the age of 18, the person must be committed to a detention facility approved by the Division of Juvenile Justice to provide secure confinement and care for juveniles. If the person is under the age of 18, the person may be temporarily confined in a holdover facility as defined in G.S. 7B-1501(11) until the person can be transferred to a juvenile detention facility. Personnel of the Juvenile Justice Division or personnel approved by the Juvenile Justice Division shall transport the person to the juvenile detention facility or the holdover facility.
N.C. Gen. Stat. § 15A-1301