OPINION ON STATE’S PETITION FOR DISCRETIONARY REVIEW
MEYERS, Judge.A jury found appellee guilty of involuntary manslaughter and assessed a sentence of sixteen years confinement. The State appealed, contending the sentence was illegal because the trial court did not enter a deadly weapon finding in the judgment. The Fifth Court of Appeals requested that both parties submit briefs so that it could determine whether its jurisdiction was invoked under Tex.Code CRiM. PROC. Ann. art. 44.01(b), which allows the State an appeal “on the ground that the sentence is illegal.” The State argued that the deadly weapon finding ought be considered part of the sentence under art. 44.01(b) and that the trial court’s failure to include the finding in this ease was a clerical error, thus rendering the sentence illegal. For his part, appellee focused on the legality of the sentence. Referencing those cases that set out when the trial court can properly enter a deadly weapon finding into the judgment, appellee argued that the trial court could not have entered such a finding in this case and thus did not err in not doing so. The sentence, by appellee’s reckoning, was therefore not illegal such that jurisdiction was invoked under art. 44.01(b). The court of appeals, citing Marshall v. State, 860 S.W.2d 142, 143 (Tex.App.—Dallas 1993, no pet.), dismissed the appeal for want of jurisdiction. We granted discretionary review to determine whether the court of appeals erred in its determination.
We emphasize, at the outset, that the legality of the sentence in this case is not before us. The court of appeals did not address that issue and they were correct to not do so. As the plain language of art. 44.01(b) makes clear, jurisdiction under that statute does not hinge on the legality of a sentence. Instead, and as the court of appeals properly assessed, art. 44.01(b) jurisdiction turns on whether the State appeals a *750sentence. After all, art. 44.01(b) only applies to sentences:
The [S]tate is entitled to appeal a sentence in a case on the ground that the sentence is illegal.
TexCode CRIM. PROC. Ann. art. 44.01(b)(em-phasis added). Thus, once the court of appeals determines that the State is appealing a sentence and not something else 1, jurisdiction is properly invoked and questions of legality can be addressed on their merits. This, because art. 44.01(b) provides for the appeal of a sentence not when a sentence is illegal, but on the ground that it is illegal.
Addressing the jurisdictional question of whether the State was properly appealing a sentence, the court of appeals relied on Marshall for the proposition that a deadly weapon finding is not part of a sentence. Marshall, 860 S.W.2d at 143. The State argues that this reliance is misplaced since the court of appeals in Marshall determined the scope of a sentence not under art. 44.01(b), the provision at issue here, but instead under TexCode CRIM. PROC. Ann. art. 42.03, which mandates that the sentence “shall be pronounced in the defendant’s presence.” The State urges that the term “sentence” in art. 44.01(b) should be influenced by the broad construction of Tex Code CRIM. Phoc. Ann. art. 44.01(a).2 Specifically,- the State points out that this Court has construed art. 44.01(a)(1) broadly to allow a State’s appeal when an order that does not explicitly “dismiss” an indictment nevertheless has the effect of a dismissal. State v. Moreno, 807 S.W.2d 327, 333 (Tex.Crim.App.1991). Extending Moreno to this case, the State suggests that, “whether or not the deadly weapon finding is technically a part of the sentence”, an appeal should be allowed under art. 44.01(b) when the trial court’s action affects the sentence. We, however, cannot dismiss the question of whether a deadly weapon finding is part of a sentence as a mere technicality. In fact, it seems quite central to the issue before us today since the plain language of art. 44.01(b) only allows the State to appeal sentences. See Boykin v. State, 818 S.W.2d 782 (Tex.Crim.App.1991).
By its plain language, TexCode Crim. Proc. Ann. art. 42.02 considers a “sentence” only “part of the judgment.”3 This has not always been the case. In fact, the sentence used to encompass the entire judgment in that the sentence was “the order of the court ... pronouncing the judgment and ordering the same to execute.” Thornton v. State, 576 S.W.2d 407, 408 (Tex.Crim.App.1979) citing Tex.Code Crim. Proc. art. 42.02 (as enacted by Acts 1965, 59th Leg., p. 317, ch. 722, § 1, eff. Jan. 1, 1966). But a subsequent amendment significantly narrowed the definition of “sentence” so that it now only includes “that part of the judgment ordering] that the punishment be carried into execution in the manner prescribed by law.” TexCode CRIM. Proc. art. 42.02 (as amended by Acts 1981, 67th Leg., p. 809, ch. 291, § 112, eff. Sept. 1, 1981). The plain language thus indicates that a sentence is nothing more than the portion of the judgment setting out the terms of punishment. For example, the sentence in this case would include the facts that appellant is to serve sixteen years in the penitentiary beginning July 28,1995, that his term is concurrent and that he must pay a $500 fine. It would not incorporate, as the State would have it, those aspects of the judgment merely affecting those facts. By the State’s logic, the word “sentence” in art. 44.01(b) should be construed to embody anything affecting the “sentence.” But almost everything in the judgment affects the “sentence”, including the jury verdict, the offense for which defendant is convicted and affirmative findings. For example, if the defendant is found not guilty, he cannot be punished at all. Like*751wise, the fact that he is convicted of shoplifting, as opposed to capital murder, also necessarily affects his sentence. Like the jury verdict and the offense for which a defendant is convicted, a deadly weapon finding also impacts the sentence. Yet, to consider any of these findings as part of the “sentence” disregards the fact that the legislature has narrowed, not broadened, the definition of “sentence”.
Moreno does not compel a different conclusion. Under 44.01(a), the State may appeal certain actions of the trial court. Pursuant to Moreno, jurisdiction vests when these actions are effectively taken even if not identified by the name stated in the code. But, while “effective” action exists, there is no such thing as an “effective” sentence. After all, the legislature has explicitly defined a “sentence”.4 Tex.Code crim. PROC. Ann. art. 42.02. In other words, although some things may impact a sentence, like a deadly weapon finding, they in no way become a “sentence” as defined by the legislature. As the Dallas Court of Appeals correctly pointed out in Marshall, a deadly weapon finding always occurs before punishment is imposed and, while such a finding may affect a sentence, it does not effectively become a sentence or any part thereof. Marshall, 860 S.W.2d at 143. To further buttress its holding in Marshall, the Dallas Court of Appeals turned to Tex. Code Crim. PROC. Ann. art. 42.01, which sets out what should be included in a judgment, and noted that those portions “concerning any deadly weapon finding are listed separately from the portions regarding the sentence.” Id.
That said, we recognize the concern in Moreno that trial judges “may have a tendency to resolve doubtful legal questions in favor of the defendant because such a ruling cannot harm the judge’s reversal rate.” Moreno, 807 S.W.2d at 329 n. 3. Of course, the State should be able to seek relief when a trial court fails to do something it is required to do. Fortunately, our law grants the State an avenue of relief by way of a nunc pro tunc order, which may be used to *752correct clerical errors.5 Tex.R.App. P. 36(a); Ex parte Poe, 751 S.W.2d at 876. If the trial court denies the State’s motion for a nunc pro tunc order, the State can file a writ of mandamus in order to compel the trial judge to enter the affirmative finding into the judgment.6 Perkins v. Court of Appeals, 738 S.W.2d 276, 284 (Tex.Crim.App.1987). But the State cannot appeal a case under Tex. CRIM. PROC. Ann. art. 44.01(b) in order to rectify the absence of an affirmative finding in the judgment and we cannot rewrite art. 44.01(b) in order to allow the State to appeal a problem in the “judgment” rather than the “sentence”.
The court of appeals’ reliance on its opinion in Marshall was correct. We hold for art. 44.01(b), as the Marshall Court already has for art. 42.03, that a deadly weapon finding is not part of a sentence. To hold otherwise defies the plain text of art. 42.02, which defines a “sentence”.
The court of appeals therefore did not err in dismissing this appeal for want of jurisdiction and we will not reinstate this appeal in that court.
. State v. Roberts, 940 S.W.2d 655, 656-57 (Tex.Crim.App.1996) (each court has jurisdiction to determine whether it has jurisdiction).
. TexCode Crim. Proc. Ann. art. 44.01(a) provides that:
(a) The state is entitled to appeal an order of a court in a criminal case if the order:
(1) dismisses an indictment, information, or complaint or nay portion of an indictment, information or complaint;
. The question before us today is whether the sentence, as part of the judgment, incorporates affirmative findings, which are also part of the judgment. TexCode Crim. Proc. Ann. art. 42.01 § 1(21).
. Judge Womack’s solution to dealing with the confines of the Legislature’s definition is to disregard that definition and instead apply the common usage meaning of "sentence." This approach is contrary to precedent, the Code of Criminal Procedure and treads on notions of separation of powers. Tex Code crim. Proc. Ann. art. 3.01 ("All words, phrases and terms used in this Code are to be taken and understood in their usual acceptation in common language, except where specialty defined..’ j(emphasis added); Vernon v. State, 841 S.W.2d 407, 409 (Tex.Crim.App.1992)("words not specifically defined by the Legislature” are to be understood in ordinary usage). We have explained the duty of this Court to refrain from intruding on the legislative realm:
Courts have no power to legislate. It is the court's duty to observe, not to disregard statutory provisions. Courts can neither ignore nor emasculate the statutes. Further, courts have no power to create an exception to a statute, nor do they have power to add to or take from legislative pains, penalties and remedies.... It is for the Legislature, not the courts, to remedy defects or supply deficiencies in the laws, and to give relief from unjust and unwise legislation.
In Dodd v. State, supra, 201 S.W. at p. 1018, this Court wrote:
"The duty of the courts is to observe statutory provisions. It does not lie with them to arbitrarily disobey them. The rights of the public and the citizen are best protected by an observ-anee of the law as it is written where it does not overstep constitutional provisions.... ”
Ex parte Hayward, 711 S.W.2d 652, 655-56 (Tex.Crim.App.1986) (citations omitted).
Judge Womack reasons that because the terms "sentence” and "sentencing” as used in various places in the Code do not, in his view, appear to be consistent with how the term "sentence” is defined in article 42.02, then we should give the term its common meaning when construing it in the context of article 44.01. Never mind that application of the Legislature’s definition to article 44.01 does not render that provision absurd or ambiguous. Boykin v. State, 818 S.W.2d 782, 785-86 (Tex.Crim.App.1991)("If the plain language of a statute would lead to absurd results, or if the language is not plain but rather ambiguous, then and only then, out of absolute necessity, is it constitutionally permissible for a court to consider, in arriving at a sensible interpretation, such extra textual factors as executive or administrative interpretations of the statute or legislative history”); see also Schultz v. State, 923 S.W.2d 1, 2 (Tex.Crim.App.1996)("It is only when a statute is ambiguous or would lead to absurd results that a court may resort to extra-textual factors such as legislative history”). If this Court is no longer bound when interpreting terms in the Code of Criminal Procedure, to apply the definitions of those terms that are provided in the Code of Criminal Procedure, then the respective roles of lawmaker and law interpreter are blurred beyond recognition.
. It is questionable in this case whether there was a jury-made affirmative finding. When there is a jury-made affirmative finding, its entry into the judgment is not optional upon the trial court:
On an affirmative finding under this subdivision, the trial court shall enter the finding in the judgment of the court.
Tex.Code Crim. Proc. Ann. art. 42.12, § 3(g)(2) (emphasis added). The failure of a trial court to do something that is mandatory has been deemed a clerical error as opposed to an error of judicial reasoning. Ex parte Poe, 751 S.W.2d 873, 876 (Tex.Crim.App.1988). Judge Womack voices his disagreement with this statement, “that a court has authority to correct an error nunc pro tunc if the error was the violation of a mandatory duty” and says he believes “nunc pro tunc corrections should be limited to clerical errors.” But he doesn't say that Poe should be overruled or show how its reasoning is faulty in equating the violation of a mandatory duty with a clerical error. In Poe this Court explicitly held that when a court has no discretion on a matter (when it is, in other words, a mandatory duty), then the failure of the court to comply is considered a clerical error since no judicial reasoning is required:
As previously stated, Article 42.12, § 3f(a)(2), clearly mandates that the trial judge enter in the judgment a finding that a deadly weapon was used or exhibited during the commission of an offense, once the trier of fact makes a , proper affirmative finding as per Polk. In the present case, the trier of fact undoubtedly made such an affirmative finding. Once this determination had been made the trial judge was required to reflect this by making a proper entjy in the judgment. The trial judge retained no discretion to do otherwise. ,Consequently, the failure of the trial judge to do so was not an error of judicial reasoning but rather an error of a clerical nature.
Id.
.' Under Judge Womack's construction, the State's "adequate remedy at law” would be an appeal, thereby foreclosing mandamus relief.