Help with go to statement.
Posted: Wed Oct 15, 2014 2:43 am
Hi I am new to cobol. I have a question regarding the use of go to statement. I want to know when how is the control passed when go to is used.
Procedure division
................................
IF A<B
Go to A1000-EXIT.
Perform A2000-Para
----
-----
A9000-GOBACK
GOBACK.
A1000-EXIT.
EXIT.
A2000-PARA
---
---
A3000-PARA.
---
---
my question is once the go to statement is executed control goes to A1000-EXITpara. AAfter that which statement is executed?
A2000-para or A9000 para.
Procedure division
................................
IF A<B
Go to A1000-EXIT.
Perform A2000-Para
----
-----
A9000-GOBACK
GOBACK.
A1000-EXIT.
EXIT.
A2000-PARA
---
---
A3000-PARA.
---
---
my question is once the go to statement is executed control goes to A1000-EXITpara. AAfter that which statement is executed?
A2000-para or A9000 para.