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 / venkat
when we define cobol table with OCCURS, it is of fixed
storage and length. The program execution will take the
total storage irrespective of utiliztaion. Where as table
degined with OCCURS DEPENDING ON provides flexibility to
the developers to choose length of table dynamically.
Length of below table is based on WS-OBJ value.
WS-SUB OCCURS 1 TO 5 TIMES DEPENDING ON WS-OBJ PIC X(2).
For example if you want to stoge employee detail in an
cobol table and you are not aware of number of employees at
the time of table declaration, you can use variable length
cobol table. During program execution based on number of
employees you can set the length of table
| Is This Answer Correct ? | 14 Yes | 5 No |
Post New Answer View All Answers
what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.
What are the different types of condition in cobol and write their forms.
What are the different open modes available in cobol?
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
If you are current on the owner of a set, what is the difference between obtain next and obtain first?
What are all the divisions of a COBOL program?
what is s000 u4087 error? please give the all error codes in cobol,jcl.
How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?
if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need
how do you define single dimensional array and multidimensional array in your cobol?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?
1.give the details about WHEN OTHER. 2. how many form are available in evaluate.
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad
Explain how to differentiate call by context by comparing it to other calls?