Please enable JavaScript to view this site.

ESL Documentation

Environment Declaration

Define a local or remote application for use in an ESL program.

application APP_NAME

APP_NAME

An identifier for the name of the application program.

Description

You must define all application programs with which your ESL program will communicate, before ESL can recognize them. Use the same form of the application statement, whether the application is local or remote.

The name that you specify for APP_NAME is a logical name and is not necessarily the name by which the operating system recognizes the program. You can specify any name that you wish, as long as the name is a valid ESL identifier.

Once you have defined an application program, use the APP_NAME specified in this statement to refer to it throughout your ESL program.

Example

 

application SQL

 ...

 

response to SendQuery

 start local SQL "eslsqlms.exe"

 send "select * from Mytable\n" to SQL

 begin guarded

         response to line "SQL>" from SQL

         leave block

 response to line "ERROR:" from SQL

# Handle error

leave block

response to line from SQL

# Handle data

leave block

end

stop SQL

See Also

start Action Statement

stop Action Statement