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 / vani

is there any exit statement for the goto para
if it's so,it can be replaced with perform statement

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to traceback if I am getting SOC7 or SOC4 abend? List down the steps

480


How can we find that module can be called – whether DYNAMICALLY or STATICALLY?

703


What is a SSRANGE and NOSSRANGE?

809


how do you reference the ksds vsam file formats from cobol programs

647


How do you reference the fixed block file formats from cobol programs

693






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

696


) what is the difference between AID and HANDLE AID?

1627


) how do u code after getting data?

1575


Discuss about changing dataset name in proc.

757


What do you understand by psb and acb?

659


how do you reference the fixed unblock file formats from cobol programs

698


which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad

1014


How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)

2716


input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.

1772


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

698