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 / sivakumar sekharannair

As ram said the number of occurances stored can be only 5
in either case. it cannot exceed more than that. what i
feel is when the first occurs clause is used regardless of
the number of occurances are loaded in the table the memory
allocation would be 5 bytes but if occurs 1 to 5 times
depending on ws-var, memory allocation will be made based
on the number of occurances loaded.

Is This Answer Correct ?    4 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write the code to count the sum of n natural numbers.

927


How can i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?

2343


Write down the divisions of cobol program?

842


What are the pertinent COBOL commands?

2826


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

1006


If you are current on the owner of a set, what is the difference between obtain next and obtain first?

848


What is report-item in COBOL?

894


how to refer the data field?

1992


What is the difference between perform … with test after and perform … with test before?

1150


what is the use of outrecord?

1970


how we sort two input files based on a common column and giving one o/p file please send me the coding logic?

1885


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

1028


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

1016


What is the difference between comp and comp-3 usage?

867


How are the next sentence and continue different from each other?

1011