Information icon IBM InfoSphere DataStage and InfoSphere QualityStage, Version 8.5
space Feedback

DSLogEvent

Logs an event message to a job other than the current one. (Use DSLogInfo, DSLogFatal, or DSLogWarn to log an event to the current job.)

Syntax

ErrCode = DSLogEvent (JobHandle, EventType, EventMsg)

JobHandle is the handle for the job as derived from DSAttachJob.

EventType is the type of event logged and is one of:

EventMsg is a string containing the event message.

ErrCode is 0 if there is no error. Otherwise it contains one of the following errors:

Example

The following command, when included in the msales job, adds the message "monthly sales complete" to the log for the qsales job:

Logerror = DsLogEvent (qsales_handle, DSJ.LOGINFO,
→ "monthly sales complete")

PDFThis topic is also in the IBM InfoSphere DataStage Programmer's Guide.

Update timestamp Last updated: 2010-09-30