Keywords and Commands
A keyword is a fixed defined use of a word that indicates how the programming language should be interpreted. There are two types of keywords.
The first type of keyword controls the flow of execution of the defined rule. These keywords are used to evaluate conditions and perform looping operations. The second type of keyword is a command. Commands perform actions on variables and are responsible for the movement of data.
The following is a list of Sterling Gentran:Server® execution control keywords.
- IF
- THEN
- ELSE
- BEGIN
- END
- WHILE
- DO
- CONTINUE
- BREAK
The following is a list of Sterling Gentran:Server commands.
- AUDITLOG
- GET
- SET
- STRDATE
- CONCAT
- LEN
- ATOI
- ATON
- CERROR
- EMPTY
- EXIST
- INDEX
- NTOA
- COUNT
- DELETE
- FSEEK
- FTELL
- READBLOCK
- UNREADBLOCK
- READBYTES
- LEFT
- MID
- RIGHT
- SELECT
- UPDATE
- INSERT
- WRITEBLOCK
- WRITEBYTES
- CREATEOBJECT
- DELETEOBJECT
- QUERYOBJECT
- GETIID
- WINEXEC
- DATE
- EXEC
- PARAM
Note: A statement must be terminated with a semicolon (;).