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
Difference between cobol and cobol-ii?
what is difference between cobol and cobol/400
What is the use of intialize verb?
Discuss about changing dataset name in proc.
how do you reference the variable block file formats from cobol programs
What is amode(24)?
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
Differentiate between structured cobol programming and object-oriented cobol programming.
What is perform what is varying?
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.
What is rmode(24)
State the various causes of s0c1, s0c5 and s0c7.
What are the different rules of SORT operation?
How many bytes S(8) comp field occupy and its maximum value?
Difference between array and sub-script ?