McIDAS-X User's Guide
Version 2021.1

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


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.


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