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 / ganesh
but if there is no any condition to check for in evaluate
statement. how can we replace it using evaluate.
won't it change the structure of program if we use evaluate
statement.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Mention the guidelines to write a structured cobol program?
What is the LINKAGE SECTION used in COBOL?
Which is not true about evaluate statement
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)?
Why did you choose to work with ibm mainframe cobol programming?
What is the difference between external and global variables in COBOL?
What happens when we move a comp-3 field to an edited (say z (9). Zz-)?
what is the use of outrecord?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?
how do you reference the printer file formats from cobol programs
There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.
How did the release of cobol/370 version 1.3 improve the performance of release 1.1?
Write a program to enter and display the names of students in a class using the occurs clause.
What is the Purpose of POINTER Phrase in STRING command in COBOL?
How can you get the ksds file records into your cobol program?