Yes it works. But u don't get the point.
I want the line that indicates the sex before any of data is outputted.
I have already solved the problem, by computing temporary variable, and adding a line.
If it would be helpful for anybody here is code.
data = sashelp.class nowindows;
columns sex age name height weight;
define sex/order noprint;
compute before sex;
text = "Sex = " ||sex;
line text $40.;