If the attachment issued pursuant to § 19-5-8 be not for immediately bringing the witness before the court or officer, a sum may be fixed in which the witness may give an undertaking with surety for his appearance. Such sum shall be endorsed on the back of the attachment, and if no such sum is fixed and endorsed, it shall be one hundred dollars.
SDCL 19-5-10