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 / nag(igate)

using evaluate statement

Is This Answer Correct ?    8 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

In which area will you utilize 88 level items in cobol?

916


How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?

2242


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

992


Which Search verb is equivalent to PERFORM…VARYING?

870


) How do u handle errors in BMS macro

1723


What are the cobol coding sheets?

881


Name some of the examples of COBOl 11?

2902


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

1248


What are various search techniques in cobol? Explain.

883


Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?

917


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

1044


How do you differentiate between cobol and cobol-ii?

875


how to access the file from prodution from changeman tool and to submit a file to production

7118


I have one ps file in which there are 3 fileds emp_no,emp_name and leave_app.this ps file information give the detail of employee which is going to apply for leave.suppose emp_no=113430,emp_name=ajay,leave_app=1 that means he is going to apply for 1 day leave.and accordingling the table in db2 will be updated means if he has that no of leave in his account then he will get dat leave and updated acc. in table(leave_balance=previous leave present in table-leave_app).Now i want to check whther the updated result is correct or not by comparing the two ps file using IEBCOMPARE or icetool so what is going to be the two ps file and how its is going to be compare.

2225


please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?

2201