Ich bin mit dem folgenden Code, der für mich zwei Spalten eines SAS-Datensatz vergleichen soll:CONVERT-Anweisung in SAS Proc SQL
PROC SQL;
CREATE TABLE loandata.tv_curve AS
SELECT DISTINCT CONVERT(INT, srp_contract_lifetime) as srp_contract_lifetime, rpa_tv
FROM loandata.sas_f_risk_parameter_cn
WHERE rpa_tv IS NOT NULL
ORDER BY CONVERT(INT, srp_contract_lifetime);
QUIT;
Allerdings, wenn ich diesen Code ich folgende Fehlermeldung erhalten, laufen Nachrichten:
ERROR: Function CONVERT could not be located.
ERROR: Function CONVERT could not be located.
ERROR: The following columns were not found in the contributing tables: INT.
Wie kann ich meine srp_contract_lifetime -Variable korrekt in ein int konvertieren?