When the defendant appears for judgment, he must be informed by the court, or by the clerk under its direction, of the nature of the indictment or information, and his plea and the verdict, if any thereon, and must be asked whether he has any legal cause to show why judgment should not be pronounced against him.
Okla. Stat. tit. 22, § 970