Dear, I woud like criate a PESO variable string but I get an Error(1): Also I woul like insert an new extra row like: Carlos M 62 72 75 Thanks in advance ================================================== proc iml; tClass=TableCreateFromDataSet ("Sashelp", "Class"); call TablePrint(tClass); Y=TableGetVarData (tClass, {"Weight" "Height"}); wt=Y[,1]; ht=Y[,2]; BMI=wt/ht##2 * 703; if (BMI>=18.5) & (BMI<=24.9) then PESO="Normal"; if (BMI>=25.0) & (BMI<=29.9) then PESO="Sobrepeso"; if (BMI>=30.0) & (BMI<=39.9) then PESO="Obesidade"; if (BMI>=40.0) then PESO="Obesidade Grave"; quit; call TableAddVar(tClass, "BMI", BMI); call TableAddVar(tClass, "PESO", PESO);
... View more