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

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

1 Answers   Syntel,


What are the divisions in a cobol program?

1 Answers  


How to Pass table from a cobol program to another cobol program and how to use that table in called program

8 Answers   Patni, SunGard,


I have the file which is having the extension no as records. sample file will look like below. 2310 3410 3256 4350 3781 5408 I need to replace the record which is starting with 3 to 5 (i.e) 3410 to 5410. How can we do it through cobol and cobol-db2 program? I need the possible logic?

5 Answers   RBS,


If by mistake we MOVE a working storage variable into LINKAGE area. What will happen??

4 Answers   Accenture,


I had 100 records and i want to execute last three records by using cobol programming?what will be coding?

4 Answers   IBM,


hie everyone.i just completed my b.tech in electronics and joined mainframes course.am i doing right course for my better future?please help me with your suggestions.ill be very thankful to you guys.

2 Answers  


why we are using picture clause in the cobol programs?

2 Answers  


I have a files containing both duplicate and non-duplicate records.The file is already sorted by a key.I want to determine those records that are duplicate and records that are non-duplicate.If duplicate the record is move to a duplicate file and if non-duplicate that will be move to valid file.thank you

1 Answers  


what happens of we dont give time stamp in precompilation process

2 Answers  


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

0 Answers  


how do you reference the variable block file formats from cobol programs

0 Answers  


Categories