You could define your variables as global variables.

 Quote:

GLOBAL
Action
Declare one or more global variables.

Syntax
GLOBAL "variable1" [<,>"variablex"]

Remarks
Global variables are visible everywhere in every script during the current KiXtart session.

Examples
GLOBAL $X
GLOBAL $X, $Y, $Z
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.