View previous topic :: View next topic
|
Author |
Message |
Amit Goswami
New User
Joined: 06 Jul 2005 Posts: 11 Location: India
|
|
|
|
I have two data layout almost of similar kind. Lets
01 A-GROUP.
05 A-MEM-1 OCCUR 100 TIMES.
10 A-SUB-MEM-1 PIC X(10).
05 A-MEM-2 OCCUR 50 TIMES.
10 A-SUB-MEM-2 PIC s9(3) comp- 3.
01 B-GROUP.
05 B-MEM-1 OCCUR 100 TIMES.
10 B-SUB-MEM-1 PIC X(10).
05 B-MEM-2 OCCUR 50 TIMES.
10 B-SUB-MEM-2 PIC s9(3) comp- 3.
I want to move value of every elements from A-GROUP to B-GROUP.
Can i use
MOVE CORR A-GROUP to B-GROUP.
It is not necessary element in A-group occupies all occurence |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
since the two INTERNAL COBOL TABLES are of the same structure, why not move A-GROUP to B-GROUP? |
|
Back to top |
|
|
baskar_gct
New User
Joined: 28 Jan 2008 Posts: 2 Location: Mysore
|
|
|
|
MOVE CORR will work only if the elementory variables of same name. |
|
Back to top |
|
|
|