Defining the FOCUS Operating Environment

In this section:

There are several ways in which you can define the operating environment for FOCUS. You can:

Defining the Environment Using UNIX Variables

UNIX environmental variables enable you to define the operating environment for FOCUS. The focus shell script assigns default values to these variables. If you wish to assign values other than the default, you can declare the desired variables and export them before you start FOCUS. In addition, you can assign values for some of the variables on the focus command line.

To declare a variable and assign a value before you start FOCUS, issue the following commands:

variable=value 
export variable

where:

variable

Is the name of the variable you wish to declare.

value

Is the value you wish to assign.

export

Is a UNIX command that makes the variable available to all subsequent processes.

If the values you wish to assign are permanent, consider including the declarations in your UNIX profiles, the MI file, or in a .*rc file in your home directory.

Environment variables can be set and then read while in the FOCUS environment using the FGETENV function.

Defining the Environment Using Command-Line Parameters

You can define the FOCUS operating environment using command-line parameters. The syntax is:

focus [option ... option]

The following list summarizes the available options:

Option

Description

-f script

Starts FOCUS, with input from file script.t3i, and output to file script.t3o.

-x "command"

Starts FOCUS with a single command as input. Output goes to the terminal.

-sinkstart

Starts the FOCUS Database Server (sink machine).

-sinkstop

Stops the FOCUS Database Server (sink machine).

-savediag

Is used in conjunction with -traceon. Provides an option to gather and package trace files and other diagnostic information for Customer Support Services.

-traceon

Turns on tracing.

-traceoff

Turns off tracing.

You can specify more than one option. However, if you do so, you must precede each option with a dash (-). You cannot combine options according to the UNIX convention of using a single dash followed by a list of options.


Information Builders