why occurs clause not mentioned in 01 level

Answer Posted / som

BECAUSE IF WE DEFINE THE OCCURS CLAUSE AT 01 LEVEL THEN IT
BREAK THE BASIC RULE OF LANGUAGE DECLARTION OF SAME NAME
VARIABLE MORE THEN ONE TIME.E.G
01 NAME PIC XX OCCURS 2 TIMES. MEANS ACTUAL DECLARTION WILL
LIKE THIS
01 NAME PIC XX.
01 NAME PIC XX.
THATS WHY IT IS NOT USED AT 01 LEVEL

Is This Answer Correct ?    6 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?

1995


what happens if parmparameter passes zero bytes to the program

1856


What are declaratives and what are their uses in cobol?

915


What is the difference between binary search and sequential search?

835


How you can characterize tables in cobol?

903






What is a SSRANGE and NOSSRANGE?

1090


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

17492


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?

1393


What is the difference between PIC 9.99 and 9v99 in COBOL?

956


How to traceback if I am getting SOC7 or SOC4 abend? List down the steps

5063


What is the difference between Global and External Variables?

887


What is cobol?

927


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

2938


Write a cobol program making use of the redefine clause.

909


What is the use of intialize verb?

954