McIDAS User's Guide
Version 2017.1

[Search Manual] [Table of Contents] [Go to Previous] [Go to Next]


RUN

Runs the McBASI program.


Syntax

RUN p1 . . . pn FILE= CLEAR= VAR=
'
filename p1 . . . pn CLEAR= VAR=
RUN
"statement
' "statement


Parameters

p1 . . n

parameter values

filename

name of the McBASI program to run; the extension defaults to .MCB

statement

McBASI statement to execute immediately; 80 characters maximum

FILE=

runs a program from a different file; invalid when using the single quote format ( ' )

CLEAR=

YES

suppresses initialization of all variables

 

NO

variables retain previous values

VAR=

variable's source or destination LW file

 

SHARE

shares variables when one McBASI program RUNs another

 

x

LW file in which to store the variables (different from the default, which is assigned by terminal number), or the LW file holding the source variables


Remark

The RUN statement can be abbreviated; see the examples below.


Examples

RUN p1 . . . pn FILE=xxxxxx

'xxxxxx p1 . . . pn

Replace xxxxxx with the file name (limited to 6 characters); these two RUN statements are interchangeable.


[Search Manual] [Table of Contents] [Go to Previous] [Go to Next]