View previous topic :: View next topic |
Author |
Message |
vak255 Intermediate

Joined: 10 Sep 2004 Posts: 384 Topics: 79
|
Posted: Tue Nov 15, 2005 3:15 am Post subject: Redefine and Occurs problem |
|
|
During compilation of my code, I am getting the following Severe error. Any help.
Can't we redefine an item which has OCCURS clause ?
DEFINITION OF AN OBJECT OF A "REDEFINES" CLAUSE CONTAINED AN "OCCURS" CLAUSE. THE "REDEFINES" CLAUSE WAS
DISCARDED
Code: |
15 CCC-RPT-QTY-TBL OCCURS 00022 TIMES.
20 CCC-RPT-QTY PIC S9(03) COMP-3.
20 CCC-MEDIA-CD PIC X(01).
15 CCC-BP-ASI-RPT-QTY REDEFINES
CCC-RPT-QTY-TBL
| [/quote] |
|
Back to top |
|
 |
Phantom Data Mgmt Moderator

Joined: 07 Jan 2003 Posts: 1056 Topics: 91 Location: The Blue Planet
|
Posted: Tue Nov 15, 2005 3:24 am Post subject: |
|
|
vak255,
Quote: |
Can't we redefine an item which has OCCURS clause ?
|
Nope!. You can't redefine an OCCURS clause but the other way is allowed. Declare your CCC-BP-ASI-RPT-QTY and all its descendants first and redefine it by CCC-RPT-QTY-TBL with occurs clause.
Hope this helps,
Thanks,
Phantom |
|
Back to top |
|
 |
vak255 Intermediate

Joined: 10 Sep 2004 Posts: 384 Topics: 79
|
Posted: Tue Nov 15, 2005 4:32 am Post subject: |
|
|
Thanks Phantom... |
|
Back to top |
|
 |
|
|