Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Moving array variables

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Moving array variables
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    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Protection Exception while move 0 to ... Kevin Vaz CICS 10 Tue Oct 18, 2016 4:19 pm
No new posts Moving a PD to PD spoorni DFSORT/ICETOOL 8 Fri Oct 07, 2016 9:52 pm
No new posts Moving character data to smallint in db2 rikdeb DB2 5 Thu Jul 14, 2016 12:38 am
No new posts Unstring list of values into an array. Roshnii COBOL Programming 8 Mon Jun 27, 2016 6:25 pm
No new posts Is it possible to pass variables of s... Csongor CLIST & REXX 2 Fri Jun 10, 2016 7:33 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us