The sole matter for review is the propriety of granting a deficiency judgment when it was not specifically demanded in the foreclosure complaint. We hold a deficiency judgment to be such an incident of mortgage foreclosure that it may be supported by a general prayer for relief.1 Accordingly, the *340order granting a deficiency judgment to respondent is affirmed.
Appellants owed respondent $950,000.00 and executed a mortgage as security for the debt. Upon appellants’ default, respondent commenced suit seeking foreclosure of the mortgage, sale of the premises, appointment of a receiver and such other relief as might be just and proper. There was no specific prayer for the debt or for a deficiency judgment.
The circuit judge complied with the special referee’s recommendation and ordered foreclosure and sale of the mortgaged premises. The bidding remained open for thirty days. Following sale the indebtedness remained unsatisfied to the extent of $171,835.32. Upon respondent’s motion, the circuit judge ordered a deficiency judgment against appellants for the remaining balance.
Appellants assert the foreclosure action commenced by respondent was solely in rem and therefore could not support the granting of a deficiency judgment. We disagree. While the issue raised in this appeal is one of first impression in this State, we believe our resolution of it is consistent with general mortgage law and with the nature of a foreclosure action in South Carolina.
A mortgage represents security for an obligation, not full payment thereof. It is not implicit in the taking of a mortgage that the creditor is to look only to the property for satisfaction of the debt. Indeed, he may ignore the security and bring an action at law on the indebtedness, or he may proceed by foreclosure to satisfy his lien.
It is generally accepted that if the mortgaged premises are sold under a foreclosure decree and fail to bring a sufficient amount to satisfy the debt, the mortgagee is entitled, absent any statutory limitation or waiver on his part, to a personal judgment for the remaining deficiency. 55 Am. Jur. (2d), Mortgages, § 905. “[I]f the mortgagee does not ask for a deficiency decree in the foreclosure *341suit, and no such decree is entered, he has a remedy at law by way of an action on the debt for what remains due.” Id.
Under general principles of mortgage law, therefore, a mortgagee is not denied the full amount due him merely because he elects initially to pursue his remedy by foreclosure. An action for a deficiency judgment as a sequel to foreclosure is taken as a matter of course. See Glenn on Mortgages, Vol. 1, § 69. This appears to be true even when the mortgagee neglects to plead specifically for a deficiency judgment. It has been held that a court has “inherent power” to authorize a decree for deficiency, and that no specific notice or motion need be given to the defendant inasmuch as such decree follows implicitly. 92 C. J. S. Vendor & Purchaser § 448. “Moreover, since a decree for a deficiency is an incident of a foreclosure suit in equity, it may be granted under a prayer for general relief.” 55 Am. Jur. (2d), Mortgages, § 909.
The United States Supreme Court in Shepherd v. Pepper, 133 U. S. 626, 10 S. Ct. 438, 33 L. Ed. 706 (1890), held a decree for a deficiency to be a necessary incident of a foreclosure suit in equity. In upholding the lower court’s decision to render a personal decree for a deficiency under a general prayer for relief in a bill of equity, the Court noted the matter was within the judge’s discretion.
Prior to 1791, South Carolina adhered to the common law principle of mortgages whereby an action to foreclose a mortgage was regarded as strictly in rem. In the event of default, the mortgagee was required to commence an action in a court of equity to foreclose the mortgage, to bar the mortgagor’s right to equity of redemption and to confirm good title in the mortgagee. In case a personal or deficiency judgment was sought, the mortgagee was required to commence an action at law to obtain a judgment.
In 1791, the South Carolina Legislature changed the nature of a mortgage from that of a conveyance on condition *342to a mere lien. The Act of 1791 is set forth in a note to Mitchell v. Bogan, 45 S. C. L. (11 Rich) 686, 691 (1857). In the subsequent case of Anderson v. Pilgram, 30 S. C. 499, 9 S. E. 587 1888), the Court refused to follow the rule adopted elsewhere that a judgment for deficiency could not be rendered in a foreclosure suit since the latter was solely in rem. The Anderson court stated that in this State, an action for foreclosure was a proceeding in personam as well as in rem, and therefore, a deficiency judgment could be granted in a foreclosure suit. Accordingly, appellants’ assertion that the instant action is solely in rem is inconsistent with the nature of a foreclosure proceeding in this State.
In McConnell et al. v. Barnes, et al., 142 S. C. 112, 140 S. E. 310 (1927), this Court recognized in dicta that a judgsent for deficiency is merely incidental to the relief sought t a foreclosure action. The court noted the Act of 1791 integrated the action for foreclosure and the action for the deficiency after sale, abandoning the strict distinction between actions in rem and in personam. This construction is consistent with the maxim that equity upon Obtaining jurisdiction of an action will administer full equitable and legal relief. Generally, see 27 Am. Jur. (2d), Equity, §§ 180 et seq.
Nothing in the State statutory scheme persuades us the lower court erred in granting respondent’s motion for a deficiency judgment. Section 29-3-630 of the 1976 Code of Laws of South Carolina provides for the establishment of the debt secured prior to sale. In this case, respondent alleged the full amount of the debt owed in its complaint, and the special referee and the circuit judge both established the amount due in their report and order. Inasmuch as the debt was “established by the judgment of competent jurisdiction” pursuant to Section 29-3-630, we do not believe appellants were surprised by respondent’s motion for a deficiency judgment.
Moreover in this case, the bidding remained open for thirty days in compliance with Section 15-39-720 of the 1976 *343Code of Laws. Code Section 15-39-760 states the thirty day requirement will not apply when there is an express waiver of right to a deficiency judgment. That statute provides, in part:
“The provisions of §§ 15-39-720 to 15-39-750 shall not apply to any suit brought for foreclosure if the complaint therein states that no personal or deficiency judgment is demanded and that any right to such judgment is expressly waived . . .”
We believe the above language indicates the legislature’s intention to deny a deficiency judgment only when such has been expressly waived. There is no evidence of an express waiver by respondent.
Section 29-3-660 of the 1976 Code of Laws of South Carolina provides for the rendition of a deficiency judgment and states in part:
“In actions to foreclose mortgages the court may adjudge and direct the payment by the mortgagor of' any residue of the mortgage debt that may remain unsatisfied after a sale of the' mortgaged premises . . .”
The rendition of a personal judgment in mortgage foreclosure proceedings is thus discretionary with the court. Berry v. Caldwell et al., 121 S. C. 418, 114 S. E. 405 (1922).
In light of established general principles of mortgage law and absent an express waiver by respondent, we believe the circuit judge acted within his discretion in granting the motion for a deficiency judgment.
Affirmed.
Littlejohn, Rhodes and Gregory, JJ., concur. Lewis, C. J., dissents55 Am. Jur. (2d), Mortgages, § 909; Shepherd v. Pepper, 133 U. S 626, 10 S. Ct. 438, 33 L. Ed. 706 (1890).