Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 
Table of contents Previous: McBASI Interpreter Commands RETURN Next: McBASI Interpreter Commands SLEEP

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.


Table of contents Previous: McBASI Interpreter Commands RETURN Next: McBASI Interpreter Commands SLEEP
 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Office of Programs University Corporation for Atmospheric Research (UCAR)   Unidata is a member of the UCAR Office of Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690