Here are six statements perform-times, perform -until, Perform-After, Perform-Varying, Inline Perform, and Perform-thru.
6 COBOL Perform Statements
The perform statement continues till the end of end-perform you can say as in-line perform. When the perform calls another para, you can say as outline perform.
1). COBOL Inline Perform
Perform
procedure-name-1
end-perform.
2). COBOL perform thru
Perform
procedure-name-1
thru
procedure-name-2.
3). COBOL perform n times
Perform procedure-name N times.
4). COBOL perform until condition
Perform procedure-name-1 thru
procedure-name-2 until
<condition>
5). COBOL perform thru varying
Perform procedure-name-1 thru
procedure-name-2 varying
identifier-1/index-name-1
From identifier2/index-name-2/literal-1
By identifier-3/literal-2
Until <condition>.
6). COBOL perform from by option using varying
Perform procedure-name-1 thru procedure-name-2
varying identifier-1/index-name-1
From identifier2/index-name-2/literal-1
By identifier-3/literal-2
Until <condition-1>
AFTER identifier-4/Index-name-3
From Identifier-5/Index-name-4/Literal-3
By Identifier-6/Literal-4 UNTIL <condition-2>.
Related Posts








One response
[…] Also Read– All Perform statements you must read in COBOL […]
LikeLike