NamesDefaultToHere(1);
dt = Open("$SAMPLE_DATA/Big Class.jmp");
// Add a formula column . . .
nc = dt << NewColumn("BMI", Numeric, Continuous, Formula((:weight/:height^2)*703));
// Get the formula expression from a column into a variable . . .
bmiFormula = nc << getFormula;
Print(bmiFormula);