Solved

corr in COBOL

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
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.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
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…

896 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now