If you are going to make lots of dichotomous 1/0 variables the following may help.
Female = (Sex = 'female');
Though I would probably write:
Female = (Upcase(Sex) = 'FEMALE');
SAS treats "true" responses as 1 and false as 0.
Care needs to be taken with this approach and LT or LE comparisons as missing values will be true as missing is the smallest "value" SAS understands.
... View more