check with the qatar company which selected him and got visa - whether they will do the RP formalities without Saudi EXIT. Sometimes they may be able to get the RP without Saudi visa cancellation. It is possible. Or ask your friend to come in a new passport. If the passport pages are fully stamped, let him renew his passport once he lands in Pakistan.