大戏法:帮忙翻译Syntax rules

来源:百度文库 编辑:高考问答 时间:2024/04/30 14:08:37
Syntax rules
1. Logical expression can be simple logical variables or complex logical tests involving variables, constants, functional operators, and logical operators. Both the logical expression and the assignment expression can use any of the numeric or string functions allowed in COMPUTE transformations (see COMPUE and transformation expression) on p.51
2. Parentheses can be used to enclose the logical expression. Parentheses can also be used within the logical expression to specify the order of operations. Extra blanks or parentheses can be used to make the expression easier to read.
3. A relation can compare variables, constants, or more complicated arithmetic expressions. Relations cannot be abbreviated. For example, (A EQ 2 OR A EQ 5) is valid, while (A EQ 2 OR 5) is not. Blanks (not commas) must be used to separate relational operators from the expressions being compared.
4. A relation cannot compare a string variable to a numeric variable, or vice versa. A relation cannot compare the result of the logical functions SYSMIS, MISSING, ANY, or RANGE to a number.
5. String values used in expression must be specified in quotes and must include any leading or trailing blanks. Lowercase letters are considered distinct from uppercase letters.
6. String variables that are used as target variables must already exit. To declare a new string variables, first create the variable with the STRING command and then specify the new variable as the target variable on IF.

句法规则
1. 逻辑表达可以是简单逻辑变量或的复杂逻辑测验,后者涉及多变量,常量,功能算子和逻辑算子。逻辑表达和分配表达都可以用任何数字或串计算功能,可以转换(见改造表现compue)p.51

2. 应该用圆括号结束逻辑表达. 圆括号也能在逻辑表达内使用使操作命令具体化。可以用空白或括号外使表达更容易阅读.

3. 一个相关可以比较变量, 常量或者更复杂的算术表达. 相关式不能缩写.例如, (A EQ 2 OR A EQ 5) 是有效的, 而 (A EQ 2 OR 5) 无效.必须用横线(不能用逗号) 隔开要比较的表达式的相关算子。

4. 关系式不能比较连续性变量和数字变量, 或者三角函数. 关系式也不能比较逻辑功能性的结果, SYSMIS, MISSING, ANY, or 区间 to a number.

5.连续性变量表达必须要在引用中具体化,小写字母和大写字母是不相同的。

6. 用作目标变量的连续性变量必须是已经存在的. 要声明一个连续性变量, 首先用STRING 命令创造变量, 然后在IF上把新变量具体化为目标变量.

语法规则
1. 简单的逻辑可以表达或逻辑变量逻辑测试涉及复杂变数,常数、功能操作、逻辑操作. 既体现了逻辑和转让的表现可以用任何数字或串计算功能,可以转换(见改造表现compue)p.51
2. 括号可以用来括逻辑表达. 也可以用括号内的具体体现,合理的行动. 可以用空白或括号外使表达更容易阅读.
3. 一个可以比较的变量、常数、或更复杂的运算表现. 关系不能缩短. 例如,(一、EQEQ25)有效期,(一、二5EQ)不是. 空白(不1995/32)单独使用,必须由相关机构所表现相比.
4. 一变就比不上了一连串数字变化,反之亦然. 由于无法与一个比较合理的功能sysmis、失踪、任何范围或多项.
5. 串用价值体现,必须要引用任何具体领导和厦门车. 小写字母被认为是有别于uppercase信.
6. 串变量,作为对象变量必须已经撤出. 宣布新的变数弦,先创造了可变的根指挥的新变化,然后再具体的指标,如果在变.