Notest eng 6596 gen sp from catalog

Would it be clearer to set tmp to "" here and move this join line into the if para_type: block that follows?