Command files for the question/answer user interface contain the answers to the questions of a specific XRONOS application. In order to create such a command file in an automatic fashion, while answering to the questions asked by a XRONOS application, specify the command filename (note that the command file must not exist) from the run string, e.g.:
[n]Xronos> lc1 @lc1.cm(the extension .cm if not specified is appendend automatically). Then answer to individual questions as if the application was being run interactively. In this way correct answers are written to file lc1.cm, whereas incorrect answers are ignored.
If all the questions of a XRONOS application are answered, then a complete command file is created. This can be run by entering again the command string from the Xronos> prompt (Xronos> lc1 @lc1.cm in the example above). Note that every time a complete command file is created the corresponding command string from the Xronos> prompt is written to the macro file specified by global parameter number 4 (xronos.ma by default). This is especially useful when a number of command files have been created and need to be executed; in this case enter Xronos> @xronos.ma
If only the first N questions are answered and an end of file (cntl Z in VMS, cntl D in UNIX) is entered in response to the (N+1)th question, then an incomplete command file is created. This can be run by entering again the command string from the Xronos> prompt (Xronos> lc1 @lc1.cm in the example above). In this case only the first N questions will be answered. From the (N+1)th question onwards, answers will have to be entered interactively.
An incomplete command file (e.g. lc1.cm) can be used as a template to quickly create another command file (e.g.psd.cm) by typing : Xronos> psd @psd.cm @lc1.cm. In this case the first N answers are read from file lc1.cm and written to file psd.cm (after checking that the replies are correct also for application psd). At the (N+1)th question the control is transferred to the terminal, from which answers can be entered as in cases (a) and (b).