SPLASH has statement forms for expressions,
blocks,
conditionals,
output,
"break" and
"continue",
"while" and
"for" loops,
as well as blocks of statements.
Expression Statements
You can turn any expression into a statement by terminating the expression with a semicolon.
Block Statements
Statements can be a sequence of statements, wrapped in braces, with optional variable declarations.
Conditional Statements
Use conditional statements to specify an action based on whether a specific condition is true or false. Conditional statements in SPLASH use the same syntax as conditional statements in C.
Output Statements
The output statement schedules an event to be sent to downstream streams, and also to be entered into the associated store.
While Statements
While statements are a form of conditional processing. Use them to specify an action to take while a certain condition is met. While statements use the same syntax as while statements in C and are processed as loops.
For Loops
Loops are often coded with for loops, which provide a convenient means of looping over some or all of the records in an input stream, or all of the data in a vector or dictionary.
Control Statements
Use control statements to terminate or restart both while loops and for loops.
Switch Statements
The switch statement is a specialized form of conditional.
Created December 14, 2011. Send feedback on this help topic to Sybase Technical Publications:
pubs@sybase.com