Prism
Operation Manual Issue 2.00
Page 7.31
The 'return code' of the program (which may be checked in batch files using the 'if
errorlevel' statement or by any other program that runs DSAMAC in a 'DOS shell')
depends on the global fail flag and whether the macro sequence executed successfully:
0 is returned if the Macro File was executed without errors and the global Fail
Flag was clear on exit;
1 is returned if errors were detected in the Macro File;
2 is returned if no Macro File errors occurred, but the global Fail Flag was set
on exit;
The PC <Esc> key can be used at any time to stop Macro File execution.
7.4.2.5.1. Single Step mode
Single Step mode is invoked by using the '/S' switch in the DSAMAC command line.
This mode is useful for debugging Macro Files.
In Single Step mode, one Keyword of the Macro File is executed each time a PC key
is pressed. The programmer can thus step through the Macro File line-by-line to find
problems.
7.4.2.5.2. Macro Recording mode
Macro Recording mode is invoked by using the '/R' switch in the DSAMAC command
line. It provides a quick method of generating a 'skeleton' Macro File by operating the
DSA-1 manually.
In Macro Recording mode, each time a key is pressed on the DSA-1 is translated into
the appropriate Keyword and recorded to the specified filename. Text from the PC
keyboard is also inserted into the file, so comments can be written marking DSA-1
navigation points in the Macro File. When this task has been completed, the resulting
Macro File can be edited in the normal way to add complete the tests required.
This feature can provide a speedy way of constructing a Macro File from scratch.