8.0.1: Why is my macro running with no problem interactively but stops when running it in batch mode?
The reason is that the EMME/2 literal differs slightly when run in batch. Please refer to the EMME/2 User's Manual, Chapter 2, Section 2.3.6 Executing EMME/2 in batch mode (UNIX). Be sure to include a test before the answer to a question that will not appear in batch mode. For example, the following macro will work in both interactive or batch modes:
8.0.2: How can I redirect the output of a macro to a file?
Assuming the macro starts at the main menu level (Module 0.00):
- Under DOS:
- command /e:2048 /c EMME2 000 -m macro_name macro_parameters > file_name
- Under UNIX (C shell):
- EMME2 000 -m "macro_name macro_parameters" >& file_name &
- Under UNIX (Bourne shell):
- EMME2 000 -m "macro_name macro_parameters" > file_name 2>&1 &
Note that, when calling emme2 with the 000 (module number) option, the usual data bank validation is not performed and the log book is not updated. Therefore, it is recommended that you enter and quit emme2 with no option, prior to calling a macro using EMME2 000.
8.0.3: I have a macro which requires 8 arguments. This macro used to run perfectly well until I moved it in a new directory. Now, it seems that the last argument is lost when I recall the macro. What is the problem?
Since your macro needs 8 arguments, the length of the macro line may be quite long and it






