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 / thilak

yes as for as storage is considered, there is no difference.
Occurs & occurs depending on allocates the maximum memory
specified in the "integer TIMES" CLAUSE.

But there are options of allocating memory dynamically at
the cost of runtime overhead.

for more
http://coding.derkeiler.com/Archive/Cobol/comp.lang.cobol/20
05-05/msg00396.html

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is search and searchall?what is the diffrence between them?give an best example?

5569


Why is it necessary that file needs to be opened in I-O mode for REWRITE?

748


what is the difference between COBOL2 AND COBOL390?

2457


what are decleratives in cobol?

1831


What is a scope terminator give example?

659






how do you reference the rrds file formats from cobol programs

805


What is length is cobol?

652


If you are current on the owner of a set, what is the difference between an obtain next and obtain first? Actually in which topic will we use dis???Plz explain it clearly

2661


What is the difference between PIC 9.99 and 9v99 in COBOL?

737


Which Search verb is equivalent to PERFORM…VARYING?

691


how to refer the data field?

1812


How can we find that module can be called – whether DYNAMICALLY or STATICALLY?

714


What is rmode(24)

684


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?

705


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

2125