Page 1 of 1

dsimport return code in windows

Posted: Wed Jul 11, 2007 4:13 pm
by sunil_acc
Hi,
i was looking for the return code of the dsimport commnad in windows command prompt. As i am always getting 0 as a return code. Even if lets say the dsx file to be imported has a wrong name there is a window pop up comes up (thats ideally a dsimport windows interface). But if you hit cancel to it, still the return code is 0.

Here is link on forum that discuss something abt the dsimport, but unfortunetly the code mentioned here too uses "ERRORLEVEL" windows command that is not giving correct result. Help out if you have tried something like this.

viewtopic.php?t=108090&highlight=dsimport

Posted: Mon Feb 18, 2008 1:09 pm
by sunil_acc
did antbody tried this

OR

know the solution!


thanks
--Sunil

Posted: Mon Feb 18, 2008 3:27 pm
by ray.wurlod
Guess not!

Posted: Mon Feb 18, 2008 9:10 pm
by kduke
You are correct. ERRORLEVEL does not work. Not sure why. All the command line tools fail to set errors.

Posted: Mon Feb 18, 2008 9:20 pm
by ray.wurlod
What happens if you capture file unit #2 (stderr in UNIX terminology)?

Code: Select all

dsjob -options project job 2> myfile.txt

Posted: Tue Feb 19, 2008 7:54 pm
by kduke
You are correct dsjob works. So not ALL the command line tools fail to set errors.