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


Consider the below example

call a-test1.
--
--
--
a-test1.
if a=b
perform a-test through a-exit
next sentence
else
if b=c
perform c-test through c-exit.
if a=d
perform d-test through d-exit.
a-test.
--
--
a-exit.
exit.

can u tell me what will happen if a=b
after looping into a-exit will the control go back to a-
test1.

will the condition a=d be checked???

Answers were Sorted based on User's Feedback



Consider the below example call a-test1. -- -- -- a-test1. if a=b perform a-test through ..

Answer / uday

if a=b the loop will be executed(a-test) and then control will
comeback to the loop.here next sentence is used thats why the
control is going to execute statements after end-if ,if any.

Is This Answer Correct ?    6 Yes 0 No

Consider the below example call a-test1. -- -- -- a-test1. if a=b perform a-test through ..

Answer / rkt

Hi,
If a=b then para a-test will be performed from a-test to
a-exit , once it will be completed the control will returns
back to perform statement at line number 7 then the next
sentence statement will be executed. when next sentence will
be executed the control will look for a period (.) if it
finds then it will execute just after line of the para. here
it is if a=d , So the control will check for the condition
a=d and if its true then will perform d-test through d-exit.

Is This Answer Correct ?    6 Yes 1 No

Consider the below example call a-test1. -- -- -- a-test1. if a=b perform a-test through ..

Answer / adarsha

NOP ! none of the above.. compiler Error !!!

When you are using NEXT SENTENCE or continue, their
shouldn't be any sentence/paragraph name or anything before
or after it with in that condition...

if a=b
NEXT SENTENCE
.
.
. should be the syntax ... perform a-test through a-exit
shouldn't be coded 1


hope it helps u !

Is This Answer Correct ?    3 Yes 0 No

Consider the below example call a-test1. -- -- -- a-test1. if a=b perform a-test through ..

Answer / khasim

compile error.
d-test and d-exit. not defined in Procedure division.

if we code the d-test and d-exit.
control goes to d-exit. not goback to a-test1.

after d-exit, it will go back.

Is This Answer Correct ?    1 Yes 0 No

Consider the below example call a-test1. -- -- -- a-test1. if a=b perform a-test through ..

Answer / dimpy19

Compilation Error.
both NEXT SENTENCE and CONTINUE place holder.
above situation NEXT SENTENCE will give compilation error
CONTINUE will not generate compilation error

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More COBOL Interview Questions

What is Static and Dynamic linking ?

3 Answers  


What is perform what is varying?

0 Answers  


How do define Dymanic array in cobol how do u define single demensional arry and multidymensional arry in ur cobol.

4 Answers   Cap Gemini,


Difference between file status codes 02 and 22.... since both are for duplicate key detection.

1 Answers  


How to resolve the soc4 & soc7 other than following answers. Soc4 can resolved using mispleed dd name and dd name is not matching with file and soc7 check the sysdump and copy the offest address then correct it in the program.

10 Answers   ADP, Amdocs, Cap Gemini, Keane India Ltd, Super Value, TCS,


) How do u handle errors in BMS macro

0 Answers   IBM,


how to transfer the file from pc to mainframe??

4 Answers  


what is the difference b/w level no.01 & level no.77?

3 Answers   HCL,


i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?

0 Answers  


What are INPUT PROCEDURE and OUTPUT PROCEDURE?

0 Answers  


Can you call an OS VS COBOL pgm from a VS COBOL II pgm ?

3 Answers   Microsoft,


what r the types of perform statement

4 Answers  


Categories