- Ruth Spradlin
- PowerBuilder
- Thursday, 29 February 2024 04:11 PM UTC
Hi, I am trying to modify some code to run automatically without user input, so it can be run like a batch process. The code creates a sql file, then uses run and wait and createprocess to execute the sql code and output the results to a file. When this process is started it opens a consol window that displays information as it executes the sql. I don't need this window to be visible, although that is not the problem. If the sql encounters any errors, it pops up a box displaying the error and asking the user to stop or continue. This stops the processing until there is a response. ultimately, I would like to be able to capture those errors and just have the file continue to process, but even without capturing the errors, I need the process not to stop for user response.
I don't really understand this code very well. I see lots of parameters, but I can't find anything that explains them. I also see that there isa runandcapture, but I don't find any explanation or documentation.
If anyone can help direct me I would appreciate it. Or, is there another way I can execute sql code from within Powerbuilder and direct the output to a file?
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.