Hi,
I want to invoke sql loader program from c++.I also want to get the result of sql loader whether it failed or succeded.
How do i get the return value if I use the system command to invoke sql loader..
priya
You can't. System call returns to you its shell execution return value, not command execution (it execs a shell to execute your command). The only think you could do is reading and parsing standard output to see the result.
Alternatively, you could execute sqlloader using exec call, and collect its return value with a wait call. I think this is the easiest approach.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.