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
What is comp-1 and comp-2?
What is the difference between structured cobol programming and object alternativelyiented cobol?
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 kind of error is trapped by on size error option?
What type of SDLC u followed? Why?
Difference between array and sub-script ?
What is the Purpose of POINTER Phrase in STRING command in COBOL?
How many sections are there in data division in COBOL?
Write the code implementing the perform … varying.
What is static and dynamic call in cobol?
Name the sections present in data division.
INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?
For rewrite, why is it mandatory that file needs to be opened?
How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?
What guidelines should be followed to write a structured cobol prgm?