1
% @(#)return.mlq 19.1 (ESO-IPG) 02/25/03 14:03:41
9
RETURN [par1] [par2] [par3]
10
return to calling procedure (or terminal)
13
Return to calling procedure (or terminal) and pass up to 3 parameters
17
RETURN [par1] [par2] [par3]
19
par1 = string which will be stored in the character keyword Q1
21
par2 = string which will be stored in the character keyword Q2
23
par3 = string which will be stored in the character keyword Q3
26
Chapter 3 in the MIDAS Users Manual, Volume A
29
This is a clean way of passing parameters back to the calling
30
procedure and an alternative to using global keywords.
32
Use RETURN/EXIT to force control back to the terminal, i.e. stop
33
procedure at any level
37
Suppose we have two MIDAS procedures, proc1.prg and proc2.prg.
41
@@ proc2 !call proc2.prg
48
return moctezuma !return to calling procedure
51
Then executing proc1.prg via @@ proc1 would yield: