Solved

corr in COBOL

Posted on 2010-11-08
2
2,745 Views
Last Modified: 2012-05-10
What does corr in COBOL means?

move corr xyz in abc to zyx cba

Thanks and regards

Michael
0
Comment
Question by:michael_ch
2 Comments
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 500 total points
ID: 34090971
Hi,
MOVE CORRESPONDING is used to move elementary fields of a group-level field to corresponding fields of the target group-level field.
The elementary fields must be of exactly the same name to get moved!
Attached is a well- known example.
If you issue MOVE CORRESPONDING GROUP-1 TO GROUP-2 then FIELD-A and FIELD-E will be moved but FIELD-C and FIELD-D have different group-level names (FIELD-B vs. FIELD-BB) so they don't correspond and will not be moved!
 wmp
 

01  GROUP-1.                       01  GROUP-2.
         05  FIELD-A        PIC 999.        05  FIELD-E      PIC 99. 
         05  FIELD-B.                       05  FIELD-A      PIC 9(4).
             10  FIELD-C    PIC X(12).      05  FIELD-BB.
             10  FIELD-D    PIC XXX.            10  FIELD-C  PIC XXX.
         05  FIELD-E        PIC 99.             10  FIELD-D  PIC X.
         05  FIELD-F        PIC X.          05  FIELD-G      PIC X(10).

Open in new window

0
 

Author Closing Comment

by:michael_ch
ID: 34165228
Thanks a lot for your answer.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
WMI, model #, retrieving information 10 137
allswap challenge 6 96
How to get boolean result of md5sum from two files in powershell 8 77
SUM 2 INTEGER ARRAYS INTO 1 10 100
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

785 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question