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
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?
what happens if parmparameter passes zero bytes to the program
What are declaratives and what are their uses in cobol?
What is the difference between binary search and sequential search?
How you can characterize tables in cobol?
What is a SSRANGE and NOSSRANGE?
what is s000 u4087 error? please give the all error codes in cobol,jcl.
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?
What is the difference between PIC 9.99 and 9v99 in COBOL?
How to traceback if I am getting SOC7 or SOC4 abend? List down the steps
What is the difference between Global and External Variables?
What is cobol?
How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that
Write a cobol program making use of the redefine clause.
What is the use of intialize verb?