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


Please Help Members By Posting Answers For Below Questions

What is the default value(s) for an initialize and what keyword allows for an override of the default?

689


Are you comfortable in cobol or jcl?

634


i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?

886


How do you code cobol to access a parameter that has been defined in jcl? And do you code the parm parameter on the exec line in jcl?

690


How can i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?

2091






What is the difference between Global and External Variables?

657


What rules are followed by the search verb.

630


What is the difference between perform … with test after and perform … with test before?

872


What is the difference between PIC 9.99 and 9v99 in COBOL?

728


What rules are to be followed while using the corresponding options?

627


What is the difference between structured cobol programming and object alternativelyiented cobol?

747


Write the code to count the sum of n natural numbers.

697


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

661


What is the LINKAGE SECTION used in COBOL?

885


What are the various section in data division and briefly explain them.

688