Solved

corr in COBOL

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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
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…

762 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

20 Experts available now in Live!

Get 1:1 Help Now