Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

Variables

&pagelevel(4)&pagelevel

This section contains the definition of integer variables, line number variables and string variables together with expressions which determine these variables. The variables may be specified in many EDT statements instead of explicitly defined numbers, line numbers or strings.

Operand

Definition

ivar

#I00..#I20

One of the integer variables #I00,#I01,...,#I20 (see section “EDT variables”). Leading zeros in the numerical part of the variable designation may be omitted. Integer variables can be used to store positive or negative integer values. The permitted range of values is between -231 and 231-1. If an integer variable is used in a statement instead of an explicitly specified number then different limits apply depending on the statement.

Operand

Definition

lvar

#L00..#L20

One of the line number variables #L00,#L01,...,#L20 (see section “EDT variables”). Leading zeros in the numerical part of the variable designation may be omitted. A line number variable may have a value between 0.0001 and 9999.9999. When EDT is started, all the line number variables have the invalid value 0.0. Permissible values must then be assigned to the line number variables before they are used.

Operand

Definition

svar

#S00..#S20

One of the string variables #S00,#S01...,#S20 (see section “EDT variables”). Leading zeros in the numerical part of the variable designation may be omitted. Every string variable is assigned a content (a string) and a character set. If a string variable is deleted

then it has a blank as content and the character set EDF041. This is also the preliminary default setting for all string variables. String variables may be used as work file line numbers in many EDT statements.

Operand

Definition

svarex

svar[op ivar] | svar[op nL]

Indirect specification of a string variable in the form of an expression which describes its position relative to a given string variable. The relative position of the desired sequence of string variables can be defined by means of the content of an integer variable or explicitly by specifying nL.

Examples

  • If #I10 contains the value 5, then #S0+#I10 designates the variable #S5.

  • If #I3 contains the value 7, then #S10-#I3 designates the variable #S3.

  • The expression #S15-5L designates the variable #S10.

  • The expression #S3+8L designates the variable #S11.

Operand

Definition

svars

svarex [[.] - [.] svarex]

A contiguous range of string variables

Note

The entry of dots before and/or after the range separator and the entry of leading zeros before a variable name are still supported in the previous form for reasons of compatibility but are no longer necessary.

The specification svarex1-svarex2 (e.g. #S1-#S10) has the same effect as svarex2-svarex1 (e.g. #S10-#S1). If a svarex operand is now specified, the range consists of only this one string variable.

Examples

  • #S3 selects the string variable #S3.

  • #S4-#S7 selects #S4,#S5,#S6 and #S7.

  • #S2+1L-#S6-#I3 selects #S3 and #S4 if #I3 has the content 2.