Search found 2 matches

by nikilkarna
Thu Dec 16, 2010 7:19 pm
Forum: COBOL
Topic: need explanation on flow of perform stmt?
Replies: 6
Views: 7328

i need output of this program and the control flow. As vamsi said that it will execute the specific para(OneLevelDown) and will the control comes back to statement(display in the para and stop run will encounter) or will it pass to the next statement(next perform).
by nikilkarna
Thu Dec 16, 2010 2:20 am
Forum: COBOL
Topic: need explanation on flow of perform stmt?
Replies: 6
Views: 7328

need explanation on flow of perform stmt?

can some one explain the flow of this one? procedure division. TopLevel. DISPLAY "In TopLevel. Starting to run program" PERFORM OneLevelDown DISPLAY "Back in TopLevel.". STOP RUN. TwoLevelsDown. DISPLAY " Now in TwoLevelsDown." PERFORM ThreeLevelsDown. DISPLAY " Back in TwoLevelsDown.". OneLevelDown...