next up previous contents
Next: SHOW-VARIABLES Up: THE SCL COMMANDS. Previous: THE SCL COMMANDS.   Contents


DECLARE

The DECLARE command allows you to define your own variables. Variables may be one of five types - the first letter of the type indicates the format and the following digit or digits indicates the amount of storage to be allocated for each array element (in bytes).

Variable type Mnemonic
Logical L4 or l4
Integer I4 or i4
Real R4 or r4
Double precision R8 or r8
Character*n Cn or cn ( $1\leq n\leq128$)

Additionally, variables of any type may be singly dimensioned arrays (vectors). I expect to be able to include multiply dimensioned arrays in the near future.

The DECLARE command has two prompts:

Variable name? (string)
Variable type? (string)

Examples:

     >> declare n i4        ! integer variable N
     >> declare a(5) l4     ! logical array A of length 5



Jamie Leech 2004-08-16