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 kind of error is trapped by on size error option?

733


) How do u handle errors in BMS macro?

1418


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

867


HOw can I get the negative sign while deduct high value from low value

1779


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

686






What is the usage of comp fields in cobol?

645


How did the release of cobol/370 version 1.3 improve the performance of release 1.1?

634


i made it to stage 3 of an interview process wednessday they will quiz my knowledge again face to face for an analyst role recruiter said it will be based on Business requirements system is cobol and good ideas what they might ask etc

2096


How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.

3706


what is the use of outrecord?

1765


What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?

705


What is the difference between next sentence and continue in cobol programing language?

698


input 1 input2 ouput1 output2 output 3 1 re 300 1 re 200 1 re 300 3 rc 500 1 re 200 2 rr 400 1 re 300 2 rr 400 1 rc 400 3 rc 500 1 rc 400 2 rr 700 2 rr 700 5 tt 900 5 tt 900 2 inputs r in flat file and output 1 is matched records,ouptput2 is unmatched of input1,output3 is unmatched of input2! how vl u get the output files using sequential order and to check with each and every records! let me know the procedure division ?

1862


How to remove 2 duplicate records and copy only one using job control language?

729


Have you used comp and comp-3 in your project? And how?

2003