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...

Can we use goto statement in inline_perform ?

Answer Posted / sivakumar sekharannair

Yes go to can be used in inline perform. when GO TO is used
in inline perform then irrespective of the number of times
the perform has to execute.. the control will go to GO TO.
example:
PERFORM VARYING A1 FROM 1 BY 1 UNTIL A1 > 4
DISPLAY 'SIVAKUMAR'
GO TO DISPLAY-PARA
END-PERFORM.

DISPLAY-PARA
DISPLAY 'KUMAR'.

SYSOUT:
SIVAKUMAR
KUMAR

Instead of
SIVAKUMAR
SIVAKUMAR
SIVAKUMAR
SIVAKUMAR


Actually the perform has to execute 4 times and so the
display should be executed 4 times. but because GO TO is
given inside the inline perform the control goes to display-
para and and dose not come back.

Is This Answer Correct ?    16 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the rules of the move verb?

1262


What is inspect in cobol ?

1293


Differentiate between structured cobol programming and object-oriented cobol programming.

1143


Which division and paragraphs are mandatory for a COBOL program?

1274


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

2255


Name the divisions, which are available in a cobol program?

1233


What is the LINKAGE SECTION used in COBOL?

1524


How do u write test cases?

2062


What is perform what is varying?

1162


example for sub strings ? and refernce modifications whit output pls

2315


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

2072


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

1375


How are the next sentence and continue different from each other?

1291


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

1502


Difference between array and sub-script ?

1656