14 1 Getting started1.22. This generates the menu shown in Figure 1.23, allowing you to choose what typeof new window you want. Selecting Text Window and clicking on OK gives you a new,empty, window which will become the current window. You can type, for example, thesimple commandPRINT 1to display a single set of data: the number 1.When constructing commands in a window, you can use the usual keys for typing anddeleting characters, and moving about the window. You can also switch between Insertand Overwrite mode by pressing the Insert key, and the Status bar will display, with Insor Ovr, which mode you are in at any time.This is a trivial exercise, of course, but it servesto show how commands work. To get GenStat toexecute this command, leave the cursor at the endof the line (that is, just after the 1) and select theRun menu from the menu bar. Select Submit Line, asshown in Figure 1.24, and the command will beexecuted. Alternatively, you can use the "short-cut"Ctrl+L, by pressing the L key while holding downthe Ctrl key.The resulting output is displayed in the Outputwindow, as shown in Figure 1.25.Figure 1.24Figure 1.25This is not a particularly useful operation of course, because you already know what theset of data is, and because it consists only of a single number; however, this will quicklybe generalized. In the meantime, you can see that the directive name, PRINT, is like acommand verb which instructs GenStat to do something, and the number 1 is like theobject of the command. All directives, and procedures, work like this, though not alldirective names are actually verbs in the English language. The object is called theprimary parameter of the command.The PRINT directive, like all others, works with sets of data. You can make it workwith several sets of data at once by giving a list; for example, the commandPRINT 1,2has two sets, each containing one number, as shown in Figure 1.26.
1.3 Commands 15Figure 1.26In GenStat, lists are always constructed using commas. You must not use just spaces; forexample, the commandPRINT 1 2would be faulted, because the space may be an accident, and you may have meantPRINT 12Figure 1.27GenStat draws attention to mistakes likethis by popping up a Fault box, asshown in Figure 1.27. It prints a briefexplanatory message in the Outputwindow, and records the fact that a faulthas occurred in the a separate windowcalled the Event Log (see Figure 1.28).You can click on the Output button to goto the fault in the Output window, or onthe Event Log button to open the EventLog. If you do open the Event Log, youcan click on the line of any event to getGenStat to take you to that fault orwarning in the Output window. Figure 1.28You can, however, use spaces as wellas commas. So the following command is acceptable: