Weighting data in spss

#1
Hi does anyone knwo how to simultaneously weight data by two variables in SPSS (ie age AND gender) using the DOS version where you type in the commands?

thanks