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
What is amode(24)?
How you can characterize tables in cobol?
what is search and searchall?what is the diffrence between them?give an best example?
What is the difference between a binary search and a sequential search what are the pertinent cobol?
Can you please let me know the centre name of INS certification in Kolkata.
What are different data types in cobol?
what is the difference between COBOL2 AND COBOL390?
What is the difference between comp and comp-3?
Define static linking and dynamic linking.
What is the difference between binary search and sequential search?
I have File 1 occurs 5 times with Employee-ID,Employee-Name,Employee-Dept (EEE and MECH). I have File 2 occurs 10 times with Employee-ID,Employee-Name,Employee-Dept (EEE,CIVIL,CHEMICAL and MECH). In FIle 1 and FIle 2 , for matching Employee-DEPT (Only MECH) , we need to move entire records from file1 to file 2. We should not use 2D array. Your help is needed here.
How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?
Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning
What the difference is between continue and next sentence?
how do you reference the fixed unblock file formats from cobol programs