View previous topic :: View next topic
|
Author |
Message |
bala-lakshmi
New User
Joined: 01 Mar 2004 Posts: 6
|
|
|
|
hi friends,
can any one of u tell me about in-line perform statements,it's syntax
with an example program.
bye,
lakshmi |
|
Back to top |
|
|
sandip_datta
Active User
Joined: 02 Dec 2003 Posts: 150 Location: Tokyo, Japan
|
|
|
|
MOVE 1 TO I.
PERFORM UNTIL I > 5
DISPLAY ' HELLO LAKSHMI...'
COMPUTE I = I + 1
END-PERFORM.
It will display HELLO LAKSHMI 5 times.
In line Perform is used when there is 1-2 (depending on some other conditions) executable statements. In that case a new Paragraph or section may not be worthy...
Regards,
Sandip. |
|
Back to top |
|
|
srimsc_ibmmainframes
New User
Joined: 17 Feb 2004 Posts: 19 Location: pune
|
|
|
|
THE DEFINITION OF IN-LINE PERFORM IS
IN-LINE PERFORM STARTS WITH PERFORM FOLLOWED BY STATEMENTS TO BE EXECUTED AND ENDS WITH END-PERFORM.
SYATAX IS.............
PERFORM
statements to be executed
-----------
-----------
END-PERFORM.
HOPE HELP THIS. |
|
Back to top |
|
|
mmunirathnam
New User
Joined: 14 Mar 2005 Posts: 4 Location: Srikalahasti
|
|
|
|
The Inline Performs are worked until there is no inrenal GOTO statements, |
|
Back to top |
|
|
|