mcmillan
Site Admin
Joined: 18 May 2003 Posts: 1210 Location: India
|
|
|
|
Redefining items should not have any VALUE clause. But Redefined item can have VALUE Clauses.
For example:
01 A PIC 9(4) VALUE 25.
01 B REDEFINES A PIC 9(2).
is Correct, but
01 A PIC 9(4) VALUE 25.
01 B REDEFINES A PIC 9(2) VALUE 12.
is wrong.
This is because, the second item doesn't have any memory, it uses the address of A. |
|