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 / krishnan a

Instead of GOTO we can use PERFORM noneed to go EVALUATE
also
compute C = A + B.
PERFORM 100-display.
compute D = C - D.
PERFORM 200-display.
some other logic......
........
PERFORM 300-para.
......
......
PERFORM 400-para.

Is This Answer Correct ?    8 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.

9018


What guidelines should be followed to write a structured cobol prgm?

1088


What is difference between static and dynamic call in cobol?

1300


What are different data types in cobol?

1227


What is length is cobol?

1058


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

1316


What is the local-storage section?

1102


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

1092


How do you define a variable of comp-1 and comp-2?

1135


how do you reference the esds vsam file formats from cobol programs

1131


what is amode(24), amode(31), rmode(24) and rmode(any)?

1092


What is the difference between comp and comp-3?

1131


What is the difference between structured cobol programming and object alternativelyiented cobol programming?

1178


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

3171


What is the utilization of copybook in cobol? Could we utilize a similar copybook?

1174