E -- Logic Commands

Else

Introduces a sequence of logic statements to execute if the specified conditional expression of its associated DoWhen logic statement evaluates as false. Refer to IF logic command for more information.

ELSE

End

Specifies the end of a sequence of logic statements introduced by a loop logic statement (Loop, ForEach, and looping LookUp and Determine logic command variants) or a logic statement (DoWhen and Match logic commands).

Note: END can be substitiuted for END, ENDEXIT, or ENDNOPRINT.

END | ENDEXIT | ENDNOPRINT

EndCase

Specifies the end of a sequence of logic statements to execute as a result of its associated BeginCase logic statement.

EndExit

Functions similarly to the End logic command in that it specifies the end of a sequence of logic statements introduced by a loop logic statement (Loop, ForEach, and looping LookUp and Determine logic command variants) or a condition logic statement (DoWhen and Match logic commands). However, when an EndExit logic statement terminates a loop, only one pass is made through the loop. The remaining logic is also skipped, effectively terminating Prepare, Construct, or Main method calls in ispecs, or Main method calls in reports. If an EndExit is executed in a nested method, no further logic is executed in any of the methods which preceded it in the hierarchy of method execution.

Note: This command is to preserve the behavior of EndExit in performable GLGs. For future use, it is a better practice to use Return and test a returned result so that the calling method can take appropriate action.

EndNoPrint

Functions similarly to the End logic command in that it specifies the end of a sequence of logic statements introduced by a loop logic statement (Loop, ForEach, and looping LookUp and Determine logic command variants) or a condition logic statement (DoWhen and Match logic commands). However, the EndNoPrint logic command also terminates the executing frame without printing, and execution continues after the Print method call that invoked the frame.

EndUse

Removes restrictions on access set by an Exclusive logic statement to a persistent class's database records.

Note: This command is not required when logic is executed during the runtime on the Windows operating system.

ENDUSE class_name
OptionDescription

class_name

The class to unlock.

Exclusive

Restricts access to a persistent class's database records. This class must be read by the method applying the lock.

EXCLUSIVE class_name
OptionDescription

class_name

The class to lock.

Extract

Writes the current values of attributes from selected class records to an extract file.

EXTRACT class_name [ MAPPER frame_name ] AS file_name [ RETAINAS { file_name | literal } ]
OptionDescription

class_name

The class to extract. This class determines the layout of the extract file.

If a frame is specified, the frame used to provide the record layout for the extract file.

(MAPPER or MP) frame_name

The header included in an extracted frame is that specified by the first Extract logic statement for that frame. If the Business Information Server header contains a variable, an error occurs during the execution of the Extract logic statement. Business Information Server header information can be added to the extract file after it is created.

Writes records to the extract file in Business Information Server format.

Data columns are tab-delimited in Business Information Server extract files.

This command option only applies if the preceding qualifier specifies a frame.

AS file_name

Specifies the extract file write to.

(RETAINAS or RAS or RTN) file_name or literal

Saves the extract file (for example, for use in other reports) as the specified file name.

For applications that run on Windows, this file name might be any valid Windows path name. Filenames defined within string literals must have backslash characters escaped by a backslash. For example, “C:\\Folder\\File.dat”. Refer to String Literals for more information.