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: 6967
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 DB2 9.1.0 not move values to Host-Var... Miguel Fernandez DB2 8 Wed Jan 25, 2017 8:24 pm
No new posts DB2 9.1.0 not move values to Host-Var... Miguel Fernandez DB2 0 Wed Jan 25, 2017 8:23 pm
No new posts DB2 9.1.0 not move values to Host-Var... Miguel Fernandez DB2 0 Wed Jan 25, 2017 8:21 pm
No new posts Dynamic array request/response contai... Suja.Sai CICS 2 Tue Jan 24, 2017 11:37 am
No new posts Protection Exception while move 0 to ... Kevin Vaz CICS 10 Tue Oct 18, 2016 4:19 pm


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