Posted: Tue Mar 10, 2009 5:20 am Post subject: REDEFINES - (UNRESOLVED CHOICE)
Apprentice
Joined: 07 Sep 2004 Posts: 39
Having issues on how to access a REDEFINE element in mapping node or esql.
10 FLAGS PIC X(03).
10 FILLER REDEFINES FLAGS.
15 FLAG1 PIC X.
15 FLAG2 PIC X.
15 FLAG3 PIC X.
If i want to access FLAGS, what will be the procedure to follow.
Thanks in advance
Posted: Tue Mar 10, 2009 6:44 pm Post subject: Re: REDEFINES - (UNRESOLVED CHOICE)
Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
rajeevreddy wrote:
Having issues on how to access a REDEFINE element in mapping node or esql.
10 FLAGS PIC X(03).
10 FILLER REDEFINES FLAGS.
15 FLAG1 PIC X.
15 FLAG2 PIC X.
15 FLAG3 PIC X.
If i want to access FLAGS, what will be the procedure to follow.
Thanks in advance
you should have named your redefines something else. FILLER has a specific meaning in COBOL. Try renaming it like follows:
Code:
10 MYFLAGS REDEFINES FLAGS.
Be also aware that this is translated into a choice in xsd.
You cannot access a point below in the tree without having made your choice.
To make things easier in ESQL I try to access the choice path at the beginning of my map. I can then have peace of mind once I start mapping knowing that I will not get the exception you showed.
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