what is the difference between occurs and occurs depending
on? i dont think so there is the difference in
storage..then why we should use occurs depending on?

Answer Posted / anna.

For hard-coded table we define cobol table with OCCURS,
becouse it is fixed numbers of occurances.

For input-loaded table (varb/l) with OCCURS DEPENDING ON
counter.Loading with perform vayring.
In this case we have exac numbers of entry and table can
easily access.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

A table has two indexes defined. Which one will be used by the SEARCH?

873


What is cobol?

841


Which division and paragraphs are mandatory for a COBOL program?

792


Name some of the examples of COBOl 11?

2781


What are the various section in data division and briefly explain them.

815






What are the access modes of START statement?

813


Explain how you can characterize tables in cobol?

730


i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this

1086


Explain what you understand by passing by value.

805


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

751


2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic

2257


How to print 10 to 1 if the input have only 10 digit number?

918


how do you reference the ksds vsam file formats from cobol programs

752


Which is not true about evaluate statement

1844


How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.

3830