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
What is the default value(s) for an initialize and what keyword allows for an override of the default?
Are you comfortable in cobol or jcl?
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?
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?
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?
What is the difference between Global and External Variables?
What rules are followed by the search verb.
What is the difference between perform … with test after and perform … with test before?
What is the difference between PIC 9.99 and 9v99 in COBOL?
What rules are to be followed while using the corresponding options?
What is the difference between structured cobol programming and object alternativelyiented cobol?
Write the code to count the sum of n natural numbers.
Differentiate between structured cobol programming and object-oriented cobol programming.
What is the LINKAGE SECTION used in COBOL?
What are the various section in data division and briefly explain them.