Issue on executing db2 queries through shell script

hi

i am trying to execute db2 queries through shell script. it's working fine but for few queries is not working ( those queries are taking time so the script is not waiting to get the complete the execution of that query )

could you please any one help me on this

is there any wait commad ???

thanks in advance

Yes, there is a wait command. There is also a sleep command. But, unless you're running the queries in the background, neither of these should be needed.

Show us your script and explain the conditions when it doesn't work. Show us any error messages produced.

What operating system and shell are you using?