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

DSLogWarn

Logs a warning message in a job's log file.

Syntax

Call DSLogWarn (Message, CallingProgName)

Message (input) is the warning message you want to log. Message is automatically prefixed with the name of the current stage and the calling before/after subroutine.

CallingProgName (input) is the name of the before/after subroutine that calls the DSLogWarn subroutine.

Remarks

DSLogWarn writes the message to the job log file as a warning and returns to the calling before/after subroutine. If the job has a warning limit defined for it, when the number of warnings reaches that limit, the call does not return and the job is aborted.

DSLogWarn should not be used in a transform. Use DSTransformError instead.

Example

If InputArg > 100 Then
   Call DSLogWarn("Input must be =< 100; received
      ":InputArg,"MyRoutine")
End Else
   * Carry on processing unless the job aborts
End

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

Update timestamp Last updated: 2010-09-30