You failed to fill in the version number so I am guessing from your question that you are using 7.5 or earlier. Too bad, because 8SR6 makes it as easy as your question suggests: col(13)[1] = median(col(9));
Two extra lines are required in earlier versions: STAT.DS.DATA$ = %(%H,9); STAT.DS(); col(13)[1]=STAT.DS.MEDIAN;