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

What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?

664


How do we get current date from system with century in COBOL?

792


what is the use of outrecord?

1765


What do you understand by psb and acb?

659


Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?

701






Program A (Normal COBBAT) calling a B Program (DB2COBOL, COBBATDB which is using a VSAM file. its a dynamic call. How we will handle VSAM file decleration in our from JCL from where we are running A PGM. And should we have PLAN for A pGM also. if possible can some one post a sample JCL. Thanks for help in advance.

5049


How can you get the ksds file records into your cobol program?

636


What kind of error is trapped by on size error option?

733


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

704


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

984


here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?

6795


What is the difference between external and global variables in COBOL?

804


how do you define single dimensional array and multidimensional array in your cobol?

663


What is redefines clause in COBOL?

841


What is the difference between PIC 9.99 and PIC9v99?

770