Error return code for DsImport

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
atulgoel
Participant
Posts: 84
Joined: Tue Feb 03, 2009 1:09 am
Location: Bangalore, India

Error return code for DsImport

Post by atulgoel »

Hi,

I have created a script to import list of DSX to datatsage which is running through Command Prompt. Let me know which error return code I can capture in case job is unsuccessful while importing or failed to import.
Atul
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Anything other than zero, I would imagine.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

All DataStage command line executables are well-formed, in that they generate an exit status of 0 if successful, and a non-zero exit status otherwise.

The exit status can be captured through the shell variable $? if on UNIX or %ERRORLEVEL% if on Windows.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply