IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Moving array variables


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Amit Goswami

New User


Joined: 06 Jul 2005
Posts: 11
Location: India

PostPosted: Tue Feb 26, 2008 3:23 pm
Reply with quote

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

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Tue Feb 26, 2008 3:33 pm
Reply with quote

since the two INTERNAL COBOL TABLES are of the same structure, why not move A-GROUP to B-GROUP?
Back to top
View user's profile Send private message
baskar_gct

New User


Joined: 28 Jan 2008
Posts: 2
Location: Mysore

PostPosted: Wed Feb 27, 2008 3:41 pm
Reply with quote

MOVE CORR will work only if the elementory variables of same name.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Moving Or setting POINTER to another ... COBOL Programming 2
No new posts COBOL Ascending and descending sort n... COBOL Programming 5
No new posts JCL with variables JCL & VSAM 1
No new posts JCL Variables JCL & VSAM 1
No new posts reset/clear ALL application profile v... TSO/ISPF 3
Search our Forums:

Back to Top