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 ?    5 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

IF I mention stop run in CICS what happens?

1898


i made it to stage 3 of an interview process wednessday they will quiz my knowledge again face to face for an analyst role recruiter said it will be based on Business requirements system is cobol and good ideas what they might ask etc

2109


What kind of error is trapped by on size error option?

746


Can we change the password using ALTER? anyone tried and changed?

1552


When is inspect verb is used in cobol?

679






how do you reference the esds vsam file formats from cobol programs

634


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?

1808


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

1846


In COBOL programming, what is PERFORM? What is VARYING?

672


i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this

1000


) what is the difference between AID and HANDLE AID?

1637


What is the default value(s) for an initialize and what keyword allows for an override of the default?

697


How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?

710


how do you reference the printer file formats from cobol programs

669


What is rmode(24)

684