Each EGL function is composed of zero to many EGL statements of the following kinds:
myFunction(myInput);
Recursive calls are valid only if you are generating for Java.
Examples of assignment statements are as follows:
myItem = 15; myItem = readFile(myKeyValue); myItem = bigValue - 32; record1.message = "Operation " + "successful!";
add record1; // an add statement return (0); // a return statement
if (myItem = 5) ; // a null statement else myFunction(myItem); end
Non-null EGL statements have the following characteristics:
if (record2.status= "Y") record1.total = record1.total + 1; record1.message = "Operation successful!"; else record1.message = "Operation failed!"; end
A semicolon after an end delimiter is not an error but is treated as a null statement.
Names in statements and throughout EGL are case-insensitive; record1 is identical to RECORD1, for example, and both add and ADD refer to the same keyword.
System words are a set of words that provide special functionality:
The qualifier (mathLibstrLib or sysLib) is necessary only if your program has a function of the same name.
The qualifiersysVar is necessary only if your program has a variable of the same name.
A line in a function can have more than one statement. It is recommended that you include no more than one statement per line, however, because you can use the EGL Debugger to set a breakpoint only at the first statement on a line.
See also Comments.
Related concepts
EGL projects, packages, and files
Function part
Parts
Related reference
add
Assignments
call
case
close
Comments
Data initialization
delete
EGL reserved words
execute
Function invocations
get
get next
get previous
if, else
Keywords
Logical expressions
Numeric expressions
open
prepare
replace
set
String expressions
System words in alphabetical order
sysVar.terminalID
while
(C) Copyright IBM Corporation 1992, 2005. All Rights Reserved.