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 difference between binary search and sequential search?

863


how to convert the recors form vsam file to db2 table tru file aid

2988


How to use the same COBOL program in Batch and CICS on lines? explain with an example

2117


Explain the configuration section of a cobol program with examples of syntax.

885


What is the difference between comp and comp-3 usage?

883


How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that

2978


What are the different open modes available in cobol?

951


Explain how you can characterize tables in cobol?

826


If you are current on the owner of a set, what is the difference between an obtain next and obtain first? Actually in which topic will we use dis???Plz explain it clearly

2885


I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?

1422


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

968


What happens when we move a comp-3 field to an edited (say z (9). Zz-)?

1038


What guidelines should be followed to write a structured cobol prgm?

875


What are all the divisions of a COBOL program?

907


What is the difference between Global and External Variables?

953