server routine to get the datastage job log information

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
oracle
Participant
Posts: 43
Joined: Sat Jun 25, 2005 11:52 pm

server routine to get the datastage job log information

Post by oracle »

Hi All,

I have developed one sequence having 3 jobs .Here my requirement is if any one of the job fails then i need to capture the oborted job log information into file.
I need a server routine to capture the datastage job log information into text file.

Kindly guide me ?

Regards
vara
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

The server routine would need to:
  • attach to the job (DSAttachJob)

    open the text file (OpenSeq or OpenSequentialFile)

    read through its log (DSGetLogSummary, DSGetNewestLogId, DSGetLogDetail)

    write required information to text file (WriteSeq)

    close text file (CloseSeq)

    detach from job (DSDetachJob)

    handle any errors that may have occurred during the above
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
pandeesh
Premium Member
Premium Member
Posts: 1399
Joined: Sun Oct 24, 2010 5:15 am
Location: CHENNAI, TAMIL NADU

Post by pandeesh »

The routine what you require is already there.
Please do an exact search so that you can get it.
I have posted a routine which captures log info and mail it.
The log will appear in body of the mail.
You can modify as per your requirement.
pandeeswaran
leandrohmvieira
Participant
Posts: 44
Joined: Wed Sep 02, 2015 7:19 am
Location: Brasilia, Brazil

Post by leandrohmvieira »

Hello pandeesh, can you link us here? I couldn't find it
:cry:

thanks in advance
Leandro Vieira

Data Expert - Brasilia, Brazil
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

I'm assuming it is buried in here somewhere since he pointed other people to it in the past. I'm sure there's better examples, but there you go.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply