Here is a simple example of how to do it
Names Default To Here( 1 );
Open( "$SAMPLE_DATA/Big Class.jmp" );
New Column( "Rank Height",
Formula(
Col Rank( :height, <<tie( "average" ) )
)
);
New Column( "Rank Height by age",
Formula( col number(:height, :age)+1-Col Rank( :height, :age ) )
);
Jim