Solved

corr in COBOL

Posted on 2010-11-08
2
2,853 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
In this post we will learn different types of Android Layout and some basics of an Android App.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

735 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