Please provide something that looks like your data.
If you actually only have two variables in the data then to do what you want you likely need to transpose the data so that you have one observation per data respondent. How to do that depends on the actual data that you have.
Something like:
ID Var1 Var2
where Var1 has the numeric value for the first question response and Var2 has the numeric value of the second question.
Then you would assign the formats with something like:
format var1 resp. var2 gender. ;