To create a new report variable
Click the New button on the toolbar of the Catalog of Available Fields dialog.
Add Report Variable dialog, shown in the following image, is then displayed.
In the Name text box, enter the name of your report variable. The name can be up to 30 characters in length. You cannot use an existing report variable name.
In the Type list box, select the type of field that you require; for example, Decimal, Binary, Boolean, String.
In the Length text box, enter the length of your field if you selected Binary, Decimal, or String in the Type list box.
Decimal parameters can have a maximum length of 23. The maximum integer portion (whole number) length for a Decimal parameter is 12. For other primitive types, this text box is disabled.
In the Decimals text box, enter the number of decimal places if you selected Decimal in the Type list box. The maximum number of decimal places is 15. For other primitive types, this text box is disabled.
In the Initial Value text box, enter an initial value for the variable, if required.
Click the Apply button to complete the creation of the report variable. Alternatively, click the Close button without clicking the Apply button to abandon your entries.
The new report variable is then added to the list of variables on the Variables sheet of the Catalog of Available Fields dialog.