on 06-21-2015 4:20 AM
Hi,
Can some please help me out with a while loop.
I have a job where I used the wait_for_file function to detect if a file exist and how many, then use a while loop to loop through the number of files to stage each and every single file until done. Here is what my while loop looks like:
My problem is my job never stops, keeps running until I have to kill it manually.
Am I doing something wrong?
Thank you.
You must decrement the value of the global variable in a script. If not, the condition will always remain true. Hence the endless loop.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
96 | |
11 | |
11 | |
10 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.