View previous topic :: View next topic
|
Author |
Message |
narasridhar
New User
Joined: 12 Oct 2006 Posts: 32 Location: India
|
|
|
|
Can we redefine an 77 level variable |
|
Back to top |
|
|
guptae
Moderator
Joined: 14 Oct 2005 Posts: 1208 Location: Bangalore,India
|
|
|
|
Hi there,
I think we cant redefine 77 level variable. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
I don't see anything here that says you can't. |
|
Back to top |
|
|
raghavendraun
New User
Joined: 29 Apr 2005 Posts: 9
|
|
|
|
Hi,
I think u can redefine the 77 level item. But, that doesnt make any difference, since 77 level item cant have the sub-levels.
A code would look like the example below.
77 WS-CUST-NO-FLG PIC X(01) VALUE 'N'.
77 WS-CUST-NO-FLG-X REDEFINES WS-CUST-NO-FLG PIC X. |
|
Back to top |
|
|
guptae
Moderator
Joined: 14 Oct 2005 Posts: 1208 Location: Bangalore,India
|
|
|
|
Hi Kevin & raghavendraun
Thanks for correcting me. |
|
Back to top |
|
|
mallik_mca
New User
Joined: 26 Sep 2006 Posts: 4
|
|
|
|
Hi Sirdhar,
You can't redefine level number 77,88,66.Are u still in accuture.
Thanks,
Mallikarjun,
Cognizant,
Chennai |
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
Hi Mallikarjun,
Can you provide some documentation (naming its source) to support your assertion? I could'nt find anything. |
|
Back to top |
|
|
annujp
New User
Joined: 31 Aug 2005 Posts: 39 Location: St Paul,MN
|
|
|
|
I tried this out.
You can redefine a level 77 item with another 77 level item alone.
77 WS-AMOUNT PIC 9(2) VALUE 12.
77 WS-AMOUNT-RED REDEFINES WS-AMOUNT
PIC X(2).
This did not show any error.
When I changed the level of WS-AMOUNT-RED from 77 to 01, I got a compilation error
"REDEFINES" object "WS-AMOUNT" was not the immediately preceding level-1 data item. The "REDEFINES" clause was discarded.
Hope this was helpful. |
|
Back to top |
|
|
shreevamsi
Active User
Joined: 23 Feb 2006 Posts: 305 Location: Hyderabad,India
|
|
|
|
Yes..annujp is correct...
We can redefine 77 level item.
But you can't redefine a Group element with 77 level item or vice versa.
~Vamsi |
|
Back to top |
|
|
|