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
dsimport return code in windows
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
What happens if you capture file unit #2 (stderr in UNIX terminology)?
Code: Select all
dsjob -options project job 2> myfile.txt
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.