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
How to traceback if I am getting SOC7 or SOC4 abend? List down the steps
How can we find that module can be called – whether DYNAMICALLY or STATICALLY?
What is a SSRANGE and NOSSRANGE?
how do you reference the ksds vsam file formats from cobol programs
How do you reference the fixed block file formats from cobol programs
Write the code to count the sum of n natural numbers.
) what is the difference between AID and HANDLE AID?
) how do u code after getting data?
Discuss about changing dataset name in proc.
What do you understand by psb and acb?
how do you reference the fixed unblock file formats from cobol programs
which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad
How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)
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.
What is the difference between next sentence and continue in cobol programing language?