The macro file will be a regular text file containing Java code that can be edited and customized to suit your task. For example, let's say that you want to change the number of iterations that the batch job runs from 1 to 1000. Open the .java file in your favorite text editor and look for a line that looks something like:
simulation_0.getSimulationIterator().step(1);
and change the iteration count to whatever you need:
simulation_0.getSimulationIterator().step(1000);
or better still, use the run function:
simulation_0.getSimulationIterator().run();
Save the file and close it. Other typical edits may be to do any of the following: