Instead of the order requiring the attendance of the judgment debtor the judge may, upon proof by affidavit or otherwise to his satisfaction that there is danger of the debtor leaving the state or concealing himself and that there is reason to believe he has property which he unjustly refuses to apply to such judgment, issue a warrant requiring the sheriff of any county where such debtor may be to arrest him and bring him before such judge. Upon being brought before the judge he may be examined on oath and if it then appears that there is danger of the debtor leaving the state and that he has property which he unjustly refuses to apply to such judgment, he may be ordered to enter into an undertaking with one or more sureties that he will from time to time attend before the judge as he shall direct and that he will not, during the pendency of the proceeding dispose of any portion of his property not exempt from execution. In default of entering into such undertaking he may be committed to prison by warrant of the judge as for contempt.
SDCL 15-20-5