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

Suppose a program has the following code. What will be the
output?

MAIN-PARA.
DISPLAY 'MAIN-PARA'
PERFORM SECTION-A.
STOP RUN.

SECTION-A.
PARA-A1.
DISPLAY 'SECTION A PARA A1'.
PARA-A2.
DISPLAY 'SECTION A PARA A2'.

Answer Posted / suresh ramaiyan

The output is :
---------------
MAIN-PARA
SECTION A PARA A1
SECTION A PARA A2

Because, There is no THRU command in PERFORM statement. So
it will execute still it reaches the 'EXIT' command or it
will perform the full section or until the next section
reaches.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the LINKAGE SECTION used in COBOL?

1484


Can we change the password using ALTER? anyone tried and changed?

1968


How arrays can be defined in COBOL?

1155


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

7480


Why is it necessary that file needs to be opened in I-O mode for REWRITE?

1282


what is the difference between COBOL2 AND COBOL390?

3000


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

1157


Describe the cobol database components?

1135


Write a cobol program making use of the redefine clause.

1134


How to traceback if I am getting SOC7 or SOC4 abend? List down the steps

5328


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

1197


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

1244


What is the difference between Call and a Link?

1137


Write a program that uses move corresponding.

1096


Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?

1305