Hello,
I have a job which must be to carry out time as many as there are files in the repertory.
How can I make?
Thank you for your assistance
Muriel
execute a job for a list of file
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 43
- Joined: Wed Feb 19, 2003 7:17 am
- Location: France - Paris
- Contact:
Use DS BASIC job control in an Batch job. Setup a loop to cycle looking in the directory of interest and execute the jobstream for each file present. As you finish a file, either move it or rename it to take it out of the processing loop. Continuously loop until the list of files are exhausted.
You should consider also checking for some flag file to indicate the Batch job should stop cycling, as the Director STOP button will be ineffectual inside logic of this type. You'll also want to consider making sure a file is successfully processed before moving on to the next file.
You should consider also checking for some flag file to indicate the Batch job should stop cycling, as the Director STOP button will be ineffectual inside logic of this type. You'll also want to consider making sure a file is successfully processed before moving on to the next file.
Kenneth Bland
Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
What he said.
In addition, I'd suggest doing a search of this forum for the word 'loop' or 'looping'. You'll find a number of posts from people in the same (or at least a very similar) boat, along with quite a bit of discussion on the details.
![Wink :wink:](./images/smilies/icon_wink.gif)
In addition, I'd suggest doing a search of this forum for the word 'loop' or 'looping'. You'll find a number of posts from people in the same (or at least a very similar) boat, along with quite a bit of discussion on the details.
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers