How to replace the GOTO statement in COBOL without changing
the structure of program. e.g. consider following code...
I.D.
E.D.
D.D.
P.D.
compute C = A + B.
GOTO para 100-display.
compute D = C - D.
GOTO 200-display.
some other logic......
........
GOTO 300-para.
......
......
GOTO 400-para.

Now I want to replacce all GOTO statements without
changing the structure and otput of program.

Answer Posted / vani

is there any exit statement for the goto para
if it's so,it can be replaced with perform statement

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Difference between cobol and cobol-ii?

703


what is difference between cobol and cobol/400

21551


What is the use of intialize verb?

738


Discuss about changing dataset name in proc.

757


how do you reference the variable block file formats from cobol programs

676






What is amode(24)?

679


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

1833


Differentiate between structured cobol programming and object-oriented cobol programming.

662


What is perform what is varying?

699


if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.

5668


What is rmode(24)

676


State the various causes of s0c1, s0c5 and s0c7.

656


What are the different rules of SORT operation?

689


How many bytes S(8) comp field occupy and its maximum value?

1625


Difference between array and sub-script ?

1157