FORMULA LANGUAGE


Examples: @DB2Schema
This function can be used in field, column or selection formulas.

1. This formula returns the schema name FRITES if a database exists and is DB2 backed or "" if it is not DB2 backed.


2. This formula returns DB2 information about a database using its replica ID instead of its file name:
3. These formulas both return DB2 information about the current database:
4. This example uses @DB2Schema in a query to pull firstname and lastname information from the dav1 table in the same schema as the current database:
5. This example uses @DB2Schema with error handling in a column formula to return the schema of the local db2nsf database referenced in the dbname field of the document:
6. This example first uses @IsDB2 to find out if a connection to DB2 is available, and if the local database referenced in the dbname field of the document is a DB2 database, so that a more meaningful error message may be displayed from @DB2Schema: