13.07.2015 Views

Download pdf guide - VSN International

Download pdf guide - VSN International

Download pdf guide - VSN International

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

30 3 Syntax3.3 PracticalUse the VARIATE directive to define variates a - g holding the following sets of numbers:a 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12b 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1c 1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23d 2.2, 3.4, 4.6, 5.8, 7, 8.2, 9.4, 10.6, 11.8, 13, 14.2, 15.4e 1.5, 1.5, 9, 9, 11, 11, 3.3, 3.3, 6, 6, 2, 2f 1.5, 9, 11, 3.3, 6, 2, 1.5, 9, 11, 3.3, 6, 2g 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4Print their values in parallel, in the Output window, with enough decimal places to displayall the significant figures of each one.3.4 Abbreviation rulesNames of directives, options, parameters, and functions (see Section 5.1) are known assystem words, and these can always be abbreviated to four characters. If more than theminimum number of characters is given for any system word, they will be checked as faras the 32nd; characters from the 33rd onwards are ignored. Names of procedures in thestandard GenStat library are defined so that they too can be abbreviated to fourcharacters. Names of user-defined procedures are required to differ only in the first eightcharacters (although GenStat does give a warning if you define a name whose first fourcharacters are the same as an existing procedure). So, unless you are using proceduresonly from the standard GenStat library, it may be safer to give eight characters for theirnames.Option and parameter names can usually be abbreviated even further. For everydirective or procedure, an implicit order is defined for its options and for its procedures.For PRINT, as shown above, the ordering of the parameters is STRUCTURE,FIELDWIDTH, DECIMALS, CHARACTERS, SKIP, FREPRESENTATION, JUSTIFICATION,MNAME, DREPRESENTATION, HEADING and TLABELS. The rule is that you need specifyonly sufficient letters to distinguish each parameter from the parameters that occur beforeit in this (implicit) list. Above we have printed the minimum form for each one in boldletters; so for example you can abbreviate FIELDWIDTH to F, as this is preceded only bySTRUCTURE, but SKIP requires the two letters SK. However, as already mentioned, if youare uncertain about the ordering for a particular directive, it is always sufficient to specifyfour characters.This abbreviation rule also applies to string tokens. Thus, for example,READ [PRINT=data,errors] daycan be written asREAD [PRINT=d,e] day(The READ directive, which reads values into data structures, is described in Section 4.1.)An option or parameter name may be omitted altogether, along with its accompanyingequals sign, if GenStat can deduce it from the position of the setting within the statement.In the statementPRINT [CHANNEL=2; SERIAL=yes] \STRUCTURE=name,pay,hours,rate; DECIMALS=0,2you can leave out CHANNEL= as CHANNEL is the first option of PRINT: unless you sayotherwise (by giving the option name explicitly), GenStat assumes that the first optionsetting in a statement is for the first option in the implicit ordering for the directive (orprocedure). Similarly, as STRUCTURE is the first parameter of PRINT, you can also omitSTRUCTURE=, to obtainPRINT [2; SERIAL=yes] name,pay,hours,rate; DECIMALS=0,2For subsequent options (and parameters), GenStat looks to see which option (or

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!