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

can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

2008


What is rmode(24)

766


What are literals?

725


Write a program to explain size error.

768


System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..

1693






how do you reference the rrds file formats from cobol programs

936


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

775


Why occurs cannot be used in 01 level in COBOL?

808


How do you get the data to code the BMS macro?

1569


What is amode(31)

807


What is report-item in COBOL?

796


Can a Search can be done on a table with or without Index?

924


How do we get current date from system with century in COBOL?

928


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.

1219


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

2838