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?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why did you choose to work with ibm mainframe cobol programming?

1101


how do you reference the printer file formats from cobol programs

1219


I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?

2275


how to refer the data field?

2277


How do you code cobol to access a parameter that has been defined in jcl? And do you code the parm parameter on the exec line in jcl?

1203


Write a program to enter and display the names of students in a class using the occurs clause.

1208


Are you comfortable in cobol or jcl?

1049


What are declaratives and what are their uses in cobol?

1205


Which division and paragraphs are mandatory for a COBOL program?

1276


What are the different open modes available in cobol?

1190


Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.

2435


What is amode(24)?

1238


what is the difference between COBOL2 AND COBOL390?

3051


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

2021


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

2471