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 / nag(igate)
using evaluate statement
| Is This Answer Correct ? | 8 Yes | 1 No |
Post New Answer View All Answers
What is inspect in cobol ?
What are the different data types in cobol?
How do you reference the fixed block file formats from cobol programs
What is the difference between structured cobol programming and object alternativelyiented cobol?
Explain what you understand by passing by value.
here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?
Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?
What is a report item?
What are the access modes of START statement?
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?
EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?
What is the difference between goback, stop run and exit program in cobol?
how do you reference the variable block file formats from cobol programs
What are all the divisions of a COBOL program?
How to know whether the module is dynamical or statistical?