Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 6970
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 Moving a COMP-3 Variable to a Numeric... ajayachander COBOL Programming 2 Thu Dec 14, 2017 5:46 pm
No new posts Moving a PS file as body of a mail! Vignesh Sid JCL & VSAM 4 Tue Nov 21, 2017 9:23 pm
This topic is locked: you cannot edit posts or make replies. Need help how to pass the ESP variabl... Venkichaitu JCL & VSAM 12 Thu Nov 02, 2017 3:53 am
No new posts Moving UDB database to Db2 on z/OS Keith Hooley DB2 4 Wed Sep 27, 2017 12:38 am
No new posts Moving values to a variable of copybo... Vignesh Sid COBOL Programming 6 Wed Sep 06, 2017 1:04 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us