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


1)what is the maximum limit for occurs?

Eg: 01 A PIC X(10) OCCURS N TIME.

What is the max value for N?

Answers were Sorted based on User's Feedback



1)what is the maximum limit for occurs? Eg: 01 A PIC X(10) OCCURS N TIME. What is the max valu..

Answer / sruthi

HI Prakash,
your ans is wrong.max limit 7 times,that is max number of
dimentions.not the number of occurs.

Is This Answer Correct ?    21 Yes 1 No

1)what is the maximum limit for occurs? Eg: 01 A PIC X(10) OCCURS N TIME. What is the max valu..

Answer / asmara

Hi,
Here u mention it in 01 level so it will give compilation
error and ambiguity occurs so better to give from 02-49
levels will be fine
And where as the max limit for occurs Clause where
OCCURS ON DEPENDING CLAUSE will be 16,711,568 Bytes and the
table size of occurs wont go beyond this limits.
If any update information regarding this, let me inform.

Regards,
Asmara

Is This Answer Correct ?    13 Yes 0 No

1)what is the maximum limit for occurs? Eg: 01 A PIC X(10) OCCURS N TIME. What is the max valu..

Answer / leena_kulkarni

01 level is not used for occurs.

N can go upto 32K (32768 bytes).

Is This Answer Correct ?    8 Yes 3 No

1)what is the maximum limit for occurs? Eg: 01 A PIC X(10) OCCURS N TIME. What is the max valu..

Answer / sivakumar sekharannair

01 level cannot have occurs clasue. Because 01 level is
used for the entire record of a file. entire record length
can not occur again. I.E. Fields in a file can only occur
again.

Is This Answer Correct ?    3 Yes 1 No

1)what is the maximum limit for occurs? Eg: 01 A PIC X(10) OCCURS N TIME. What is the max valu..

Answer / julyo

In Cobol 11 there are a limit of 16,711,568 Bytes and 7 positions of numbers.
For example:
Example 1
05 WTAB-LOTE OCCURS N TIMES
INDEXED BY WIND-LOTE.
10 WTAB-LOTE-REG PIC X(250).

In this case N will be: N=16,711,568/250 , N=66846, and the compiler will accept '99999'

Example 2
05 WTAB-LOTE OCCURS N TIMES
INDEXED BY WIND-LOTE.
10 WTAB-LOTE-REG PIC X(003).

In this case N will be: N=16,711,568/3 , N=55770522, and the compiler will accept '9999999', but this value is less than N and for this second case the limit is related to the number of the positions (7).

But for sure there are the rest of the space in the working section. In the examples was assumed there aren't any other variable in the working.

I hope helped you

Is This Answer Correct ?    1 Yes 0 No

1)what is the maximum limit for occurs? Eg: 01 A PIC X(10) OCCURS N TIME. What is the max valu..

Answer / harish

Hi,

maximum occurs we can use in company is 7 occurs

01 level is not used for occurs clause

N can go upto 16,711,568 i think


Harish poomgame shivappa
NIIT Technolgies
Kolkata

Is This Answer Correct ?    2 Yes 3 No

1)what is the maximum limit for occurs? Eg: 01 A PIC X(10) OCCURS N TIME. What is the max valu..

Answer / sumanth toom

It probably depends on the Cobol version you are using.
I dont think all cobol versions have the same working-
storage space !

Is This Answer Correct ?    1 Yes 3 No

1)what is the maximum limit for occurs? Eg: 01 A PIC X(10) OCCURS N TIME. What is the max valu..

Answer / vijay

in practicle its 3 dimensional only

Is This Answer Correct ?    0 Yes 3 No

1)what is the maximum limit for occurs? Eg: 01 A PIC X(10) OCCURS N TIME. What is the max valu..

Answer / ravi patnam

Maximum value for the N is 99999999. For example see below:

$set ans85 comp
IDENTIFICATION DIVISION.
PROGRAM-ID. "test".
AUTHOR. RAVI PATNAM.
DATE-WRITTEN. 20-02-2009.
ENVIRONMENT DIVISION.
INPUT-OUTPUT SECTION.
FILE-CONTROL.
WORKING-STORAGE SECTION.
01 N pic 9(9) value 0.
01 test-occurs occurs 0 to 99999999
depending on N.
02 test-no pic 9(2).

PROCEDURE DIVISION.
MAIN.
move 99999999 to N.
move 11 to test-no(N).
display test-no(N).
stop run.

Is This Answer Correct ?    5 Yes 9 No

1)what is the maximum limit for occurs? Eg: 01 A PIC X(10) OCCURS N TIME. What is the max valu..

Answer / prakash

01 level is not used for occurs.

MAXIMUM LIMIT IS 7 TIMES IN VS COBOL 11.

MAXIMUM LIMIT IS 3 TIMES IN VS COBOL.

Is This Answer Correct ?    1 Yes 10 No

Post New Answer

More COBOL Interview Questions

Hai friends why we need to read a file before re-write a record?

7 Answers   L&T,


If a file has 1000 records.. if i have to replace the first and last characters of the file with another character. how it can be done....

1 Answers   HCL,


IF I mention stop run in CICS what happens?

0 Answers   IBM,


If there are two files one with 100 records and other with 101 records. we have to find out the one record that is the odd man out . What are the steps to do it

7 Answers   BirlaSoft,


what is the advantage of using redefines instead of delaring the variables ?

5 Answers   HCL,


can we use go to statement inline-perform?

7 Answers   IBM,


is it possible to pass an SQL query inside a jcl which is inside a cobol program?

5 Answers   CTS,


How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?

0 Answers  


how many subpgms we can use in a main pgm ? how do u link sub pgm to main pgm ? how can i use the parameters declared in main pgm to sub pgm ?

2 Answers   TCS,


when SE37 SB37 and sd37 occurs how to increase the volume , primary quantity and secondary quantity?

1 Answers   Hewitt,


I need to compare two VSAM files, both having 'number' as key. If there is a matching record, write the data into another VSAM file. How will it be possible.

1 Answers   DSRC,


What is an in line perform? When would you use it? Anything else you wish to say about it.

0 Answers  


Categories