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 / ram g

no i cant agree with ur ans..
for eg: ws-var occurs 1 to 5 times depending on ws-cnt
it means that u can store max of 5 entries..
if i wanna store 50 entries instead of 5 at run time...what
could be the code change u can do on this?
ur ans indirectly saying that occurs depending on is
dynamic array isn't ? never is the my ans...
if u hv any idea please explain with simple eg

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a SSRANGE and NOSSRANGE?

809


What is the Purpose of Pointer in the string?

635


What are literals?

622


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

1895


Are you comfortable in cobol or jcl?

633






) how do u code after getting data?

1575


how to refer the data field?

1793


Why would you use find and get rather than to obtain?

674


Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?

619


What are the pertinent COBOL commands?

2617


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

696


What guidelines should be followed to write a structured cobol prgm?

662


INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?

407


example for sub strings ? and refernce modifications whit output pls

1834


How to traceback if I am getting SOC7 or SOC4 abend? List down the steps

481