<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> <!--Converted with LaTeX2HTML 98.1p1 release (March 2nd, 1998) originally by Nikos Drakos (nikos@cbl.leeds.ac.uk), CBLU, University of Leeds * revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan * with significant contributions from: Jens Lippmann, Marek Rouchal, Martin Wilck and others --> <HTML> <HEAD> <TITLE>Procedure Control Commands</TITLE> <META NAME="description" CONTENT="Procedure Control Commands"> <META NAME="keywords" CONTENT="vol1"> <META NAME="resource-type" CONTENT="document"> <META NAME="distribution" CONTENT="global"> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"> <LINK REL="STYLESHEET" HREF="vol1.css"> <LINK REL="next" HREF="node174.html"> <LINK REL="previous" HREF="node161.html"> <LINK REL="up" HREF="node147.html"> <LINK REL="next" HREF="node174.html"> </HEAD> <BODY > <!--Navigation Panel--> <A NAME="tex2html2764" HREF="node174.html"> <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="icons.gif/next_motif.gif"></A> <A NAME="tex2html2760" HREF="node147.html"> <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="icons.gif/up_motif.gif"></A> <A NAME="tex2html2754" HREF="node172.html"> <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="icons.gif/previous_motif.gif"></A> <A NAME="tex2html2762" HREF="node1.html"> <IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="icons.gif/contents_motif.gif"></A> <A NAME="tex2html2763" HREF="node216.html"> <IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="icons.gif/index_motif.gif"></A> <BR> <B> Next:</B> <A NAME="tex2html2765" HREF="node174.html">Commands Grouped by Subject</A> <B> Up:</B> <A NAME="tex2html2761" HREF="node147.html">Command Summary</A> <B> Previous:</B> <A NAME="tex2html2755" HREF="node172.html">tsa</A> <BR> <BR> <!--End of Navigation Panel--> <H1><A NAME="SECTION001550000000000000000"> </A> <A NAME="procedure-control-commands"> </A> <BR> Procedure Control Commands </H1> <P> <BLOCKQUOTE> <TT><TT>BRANCH <I>var comparisons labels <BR> </I></TT></TT>multi-way branching <BR> <TT>CROSSREF <I>labl1 labl2 labl3 labl4 labl5 labl6 labl7 labl8 <BR> </I></TT>define cross reference labels for the 8 parameters <BR> <TT>DEFINE/LOCAL <I>key_def data A lower_levels_flag <BR> </I></TT>define the maximum no. of parameters for a procedure <BR> <TT>DEFINE/PARAMETER <I>Pi default type/option prompt_str low_lim,hi_lim <BR> </I></TT>define default, type and valid interval for parameter i <BR> <TT>DO <I>loopvar = start end [step] <BR> </I></TT>define a DO <I>loop (as in FORTRAN) <BR> <TT>ENTRY <I>proc <BR> </I></TT></I>define begin of procedure in a file with different name than the procedure <BR> <TT>GOTO <I>label <BR> </I></TT>branch to command line containing label: <BR> <TT>IF <I>par1 op par2 command_string <BR> </I></TT>execute conditional statement <BR> <TT>INQUIRE/KEY <I>key prompt_string <BR> </I></TT>get terminal input in a MIDAS <I>procedure <BR> <TT>LABL: <BR> </TT></I>define a label, LABL <I>in this example <BR> <TT>RETURN <I>par1 par2 par3 <BR> </I></TT></I>return to calling procedure (or terminal) and optionally pass up to 3 parameters back <BR></BLOCKQUOTE> ` <BR><HR> <ADDRESS> <I>Petra Nass</I> <BR><I>1999-06-09</I> </ADDRESS> </BODY> </HTML>