Retrieving Unique Files from Unique Directories

To read unique input files from individual directories for each execution, create one directory for each execution that you plan to perform and use a consistent naming convention that includes the full range of process IDs. Then, create one input file for each execution and use a consistent naming convention that includes the full range of process IDs. Place each input file in the associated directory.

For this example, use the same input file names you used in the previous section, and create directories named run_0 - run_599. Place in.0 in the directory run_0, place in.1 in the directory run_1, and so on. Your input files look like this:

/<working directory>/run_0/
in.0
/<working directory>/run_1/
in.1
...
/<working directory>/run_599/
in.599

Using unique directories and file names for each iteration, the attributes in your submit file for this example look like this:

Executable = RanVal.R
InitialDir = run_$(PROCESS)
Input = in.$(PROCESS)
Queue 600