MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Redefine and Occurs problem

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
vak255
Intermediate


Joined: 10 Sep 2004
Posts: 384
Topics: 79

PostPosted: Tue Nov 15, 2005 3:15 am    Post subject: Redefine and Occurs problem Reply with quote

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
View user's profile Send private message
Phantom
Data Mgmt Moderator
Data Mgmt Moderator


Joined: 07 Jan 2003
Posts: 1056
Topics: 91
Location: The Blue Planet

PostPosted: Tue Nov 15, 2005 3:24 am    Post subject: Reply with quote

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
View user's profile Send private message
vak255
Intermediate


Joined: 10 Sep 2004
Posts: 384
Topics: 79

PostPosted: Tue Nov 15, 2005 4:32 am    Post subject: Reply with quote

Thanks Phantom...
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group