I like square drive trim screws for door jambs, especially repair projects. Very positive attachment and eliminates a lot of pounding. Use 2 1/4” square drive trim screws to fasten the jamb. Go easy with a battery drill and draw them up until they set.