Page 1 of 1

Error return code for DsImport

Posted: Sat Aug 20, 2016 7:06 am
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.

Posted: Sat Aug 20, 2016 8:37 am
by chulett
Anything other than zero, I would imagine.

Posted: Sun Aug 21, 2016 6:22 pm
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.