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
What are the different rules for performing sort operation?
what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.
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)?
Differentiate between structured cobol programming and object-oriented cobol programming.
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?
how do you reference the fixed unblock file formats from cobol programs
Can you please let me know the centre name of INS certification in Kolkata.
1.give the details about WHEN OTHER. 2. how many form are available in evaluate.
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?
Write the code implementing the perform … varying.
How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.
What are different data types in cobol?
Define static linking and dynamic linking.
When is inspect verb is used in cobol?
What are INPUT PROCEDURE and OUTPUT PROCEDURE?