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 / tripti
IF AN INTERNAL TABLE OCCURS 100 TIMES.
I USE OCCURS DEPENDING ON <NUMBER OF RECS IN INPUT FILE>
CLAUSE WHILE DECLARING THE TABLE
MY INPUT FILE HAS 125 ITEMS.
CAN I ACCESS 125TH ITEM IN THE FILE USING THE INTERNAL
TABLE?
MY ANSWER ID YES. IN DEPENDING ON <XX> CLAUSE XX OVERWRITES
THE OCCURS CLAUSE
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
How you can read the file from bottom?
What is the difference between comp and comp-3?
how to move the records from file to array table. give with code example
How to traceback if I am getting SOC7 or SOC4 abend? List down the steps
What are the pertinent COBOL commands?
write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc
What is the utilization of copybook in cobol? Could we utilize a similar copybook?
Write the code to count the sum of n natural numbers.
Explain how to differentiate call by context by comparing it to other calls?
how do you define single dimensional array and multidimensional array in your cobol?
Discuss about changing dataset name in proc.
What are the different data types in cobol?
What is comp-1 and comp-2?
What is link edit in cobol?
if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.