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 and Reserved Words INPUT Next: McBASI Interpreter Commands and Reserved Words LET Index

KEYIN

Submits a McIDAS command to be run.


Syntax

KEYIN list


Parameter

list

zero or more expressions; place a comma or semicolon between expressions; commas tabulate to a print position (column) that is a multiple of 16; semicolons allow no spaces to be inserted; do not end the list with a semicolon or comma unless you don't want the statement to execute until you've entered another KEYIN statement that does not terminate with a semicolon


Remark

The exit status from the KEYIN command is placed in a pseudovariable named STATUS. A nonzero value usually indicates failure of the command.


Example

LET A$="KMSN"

LET T= 6

KEYIN "SFCLIST ";A$;" ";T

IF STATUS < > 0 PRINT "Something went wrong"

This example runs the command SFCLIST KMSN 6. If the command fails, the message Something went wrong is displayed.


Table of contents Previous: McBASI Interpreter Commands and Reserved Words INPUT Next: McBASI Interpreter Commands and Reserved Words LET Index
 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Community Programs   Unidata is a member of the UCAR Community 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