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


I have a occurs for 100 times but it has executed 101 time
what could be the reason?

Answers were Sorted based on User's Feedback



I have a occurs for 100 times but it has executed 101 time what could be the reason?..

Answer / niki

Change Compiler ioption NO SSrange to ssrange. But the
Default is NO SSRANGE.

IF U Use Compiler option SSrange, then whenever the
subscript exceeds its declared
number it will give a Eroor.
for example :
A variable is declared like this...

01 field1.
02 field2 pic x(10) occurs 10 times.
Oputput will be

then field2(1) ......field2(10) is allowed when it exceeds
it will give error
ex: field2(11) ----- erro msg will be displayed

Is This Answer Correct ?    14 Yes 0 No

I have a occurs for 100 times but it has executed 101 time what could be the reason?..

Answer / babjee talluri

we use compiler option is SSREANGE , it is used to array
boundary checking, by default NOREANGE,

Is This Answer Correct ?    5 Yes 0 No

I have a occurs for 100 times but it has executed 101 time what could be the reason?..

Answer / arun gopal

Logical error!!.. check the logic to see if the logic which
performs that section is coded properly to exit at the
bondary condition.

Is This Answer Correct ?    5 Yes 2 No

I have a occurs for 100 times but it has executed 101 time what could be the reason?..

Answer / rajesh_m13

Initialization Error..!

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More COBOL Interview Questions

how will u code parm parameter and where pls ?

3 Answers   DELL,


what is the difference between perform varying and perform until

4 Answers   TCS,


If my program receives input feed from program in other system.. if the receiving field size is less than the sending field.. what abend will be happening.

1 Answers   HCL,


What are the different types of condition in cobol and write their forms.

0 Answers  


How to covert given string into ASCII value in COBOL/MF COBOL

3 Answers   CTS, IBM, iFlex,


Write the code implementing the perform … varying.

0 Answers  


wht is the difference between goto and perform stmts

7 Answers   DELL,


What guidelines should be followed to write a structured Cobol program?

1 Answers  


What is report-item in COBOL?

0 Answers   Arigo Infotech,


what is the advantage of sync class

3 Answers   ACS,


Sending data is aplhabetic size 7 (value 3000), I wantated this value to be stored in database, which is defined as s9(7)v9(2)comp-3.

2 Answers  


Consider the following: 77 W-NUM PIC 9 VALUE 0 ------ MOVE 1 TO W-NUM PERFORM PARA-X UNTIL W-NUM > 9. ------ PARA-X ADD 1 TO W-NUM How many times PARA-X is executed ?

14 Answers   Accenture, TCS,


Categories