capture last run log using dsjob

Hi All,
Could you please let me know how to capture the WARNING or FATAL errors for the last run log using dsjob -logsum in Korn Unix Shell.

Thanks in Advance,