Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 / suraj borge

Using evaluate statement
take the value of para in a variable then evaluate it for ex.
evaluate xyz
when 100 perform para-100
when 200 perform para-200
..
.
.
.
.
like that we can replace the goto statement .

Is This Answer Correct ?    8 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between a binary search and a sequential search what are the pertinent cobol?

1137


HOw can I get the negative sign while deduct high value from low value

2255


What is a scope terminator give example?

1105


What is the difference between PIC 9.99 and 9v99 in COBOL?

1327


) How do u handle errors in BMS macro?

1960


What are various search techniques in cobol? Explain.

1066


What is the difference between PIC 9.99 and PIC9v99?

1335


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

1161


What is the Purpose of Pointer in the string?

1075


What is the difference between binary search and sequential search?

1087


EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?

2537


What the difference is between continue and next sentence?

1156


What are all the divisions of a COBOL program?

1212


A table has two indexes defined. Which one will be used by the SEARCH?

1281


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

3258