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

I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?

1234


Explain how you can characterize tables in cobol?

644


What is rmode(24)

684


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

748


What is the difference between binary search and sequential search?

643






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

744


Discuss about changing dataset name in proc.

765


What is cobol?

750


How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that

2734


what is s000 u4087 error? please give the all error codes in cobol,jcl.

17062


How to use the same COBOL program in Batch and CICS on lines? explain with an example

1916


What is the LINKAGE SECTION used in COBOL?

895


What are the different data types in cobol?

801


What are 77 levels used for?

661


i need a small 3d program using inline and outline.

1642