help required

I have a very huge dataset with 23 column varibales.When using proc sort(with 13 varibales being mentioned as the by variables) options it takes more time to execute so tried using hash thinking it would be more efficient but the issue is, it errors out with a messgae something like "hash object has insuficient memory. aborted during the execution phase" .Could anyone help me to resolve this problem?.. If hashing is not the best approach for sorting then could anyone suggest me someother technique in place of proc sort.