6 Top COBOL Perform statements you need

The all COBOL 6 perform statements. The perform times, perform until and Perform After, Perform Varying explained all with syntax.

COBOL Perform Syntax you need to know

The perform statement continues till end of end-perform you can say as in-line perform. When the perform calls other para, you can say as outline perform.

COBOL Inline Perform

Perform 
procedure-name-1
end-perform.

COBOL perform thru

Perform 
procedure-name-1 thru procedure-name-2.

COBOL perform n times

Perform procedure-name N times.

COBOL perform until condition

Perform procedure-name-1 thru procedure-name-2 until <condition>

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>.

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>.
Advertisements

Author: Srini

Experienced software developer. Skills in Development, Coding, Testing and Debugging. Good Data analytic skills (Data Warehousing and BI). Also skills in Mainframe.

Comments are closed.