These consolidated appeals arise from a resentencing proceeding. Defendants claim they were sentenced under the wrong statute. We agree and reverse and remand for new sentencing.
Defendants were tried and convicted separately for selling marijuana in violation of § 204.2, The Code, 1966. In March 1970 they were each fined $2000 and ordered imprisoned in the state penitentiary “not less than two or more than five years” under § 204.20, The Code, 1966. They took direct appeal but raised no question about their sentences. The cases were affirmed in State v. Wiese,
These appeals are bottomed on a contention a new penalty statute became applicable when former Code chapter 204, Uniform Narcotic Drug Act, was repealed by 64 GA, ch. 148, § 605, effective July 1, 1971. Provisions constituting new chapter 204, Uniform Controlled Substances, consisting of §§ 204.101 to 204.602, were enacted by 64 GA, ch. 148 §§ 1-604. Central to these appeals is § 601 of that Act, its savings clause, which relevantly provides:
“Prosecution for any violation of law occurring prior to the effective date of this Act is not affected or abated by the passage of this Act. If the offense being prosecuted is similar to one set out in division IV of this Act then the penalties under division IV shall apply if they are less than those under prior law.”
The State concedes everything for applicability of the new penalty except that these cases were “being prosecuted” at the time of resentencing. Defendants seek the benefit of the new penalty only to reduce their fines to $1000 but not to change their prison sentences. As will be shown we do not believe the issues are quite so simple.
I.
Jurisdiction of trial court to re-sentence.
No question was raised by the State regarding trial court’s jurisdiction to resentence in January 1972. However, jurisdiction of subject matter must derive from law rather than from consent of the parties, and we are required to consider the issue even when not raised in order to avoid unwarranted exercise of judicial authority. City of Clinton v. Owners of Property, etc.,
Authority for postconviction attack on a sentence which violates a statute of this state is expressly conferred by Code § 663A.2(1). Postconviction courts are
*737
charged with entering an appropriate order “with respect to the conviction or sentence in the former proceedings, and any supplementary orders as to * * * correction of sentence.” § 663A.7, The Code; see also State v. Mulqueen,
Since the former appeals did not adjudicate the legality of the sentences they do not preclude subsequent attack and correction. State v. Thomas,
Further, a trial court does not exhaust its jurisdiction until a valid judgment is entered. State v. Shilinsky,
Trial court had jurisdiction to re-sentence.
II.
Applicability of the new penalty.
It is evident from the language of the savings clause in the new statute that the legislature intended to make its penalties applicable to all future sentences where they were less than those in the old statute. Penal statutes are strictly construed. An ameliorative change should be extended to every case in which it properly can apply. In re Estrada,
Defendants are right in their contention trial court erred in resentencing them under the old statute.
III. The remedy. Under the new statute defendants’ offenses would be possession with intent to deliver a controlled substance (marijuana), punishable “by imprisonment in the penitentiary for not to exceed five years and by a fine of not more than one thousand dollars.” 64 GA, ch. 148, § 401, subd. 1, par. a(2). Accommodation offenses are punishable “by imprisonment in the county jail for not to exceed one year or by a fine of not more than five hundred dollars, or by both such imprisonment and fine.” 64 GA, ch. 148, §§ 401, 410. They are content with imprisonment “not to exceed two years” imposed by *738 trial court in the January 1972 resentenc-ing proceeding and complain only of the $2000 fines.
However, there is no way these purported prison terms can be permitted to stand. As indeterminate sentences they were not permissible under the prior statute. Masteller v. Board of Control, supra. Where a statute requires sentence to a term of years and an indeterminate sentence is given, it is too indefinite to be valid. State v. Stevenson,
The new statute does provide for an indeterminate sentence, but the legislature has established the maximum imprisonment at not to exceed five years.
The court has no authority to fix a lesser prison term. Under an indeterminate sentence the parole board determines the minimum time served. St.ate v. Kulish,
Defendants have established their right to be resentenced under the new statute. Trial court has a much better vantage point than we do to make the determinations necessary to pronouncement of new sentences, and therefore the cases will be remanded for that purpose. Defendants shall be given credit against any incarceration imposed for any time served under their prior sentences in addition to any credit to which they may be entitled under Code § 246.38. Reversed and remanded for new sentences.
*739 2. Elections @=>156
