View previous topic :: View next topic
|
Author |
Message |
bittu Warnings : 1 New User
Joined: 07 Jan 2007 Posts: 19 Location: Bangalore
|
|
|
|
Hi,
Can anybody provide me some example on forward overlapping moves?
Forward overlapping move -> where the start of the target data item overlaps the end of the source data item.
Have anybody come across with this kind of situation? If yes, please share your experience on this.
Thanks |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
It should not take you more than 15 minutes to code up the variables and redefines to generate your own example -- so why ask us? Are you having problems with this type of move? |
|
Back to top |
|
|
bittu Warnings : 1 New User
Joined: 07 Jan 2007 Posts: 19 Location: Bangalore
|
|
|
|
Hi,
Thanks for your reply.
Did you mean to say if we redefine any field with some other field and use those fields in different calculations within the code for example using MOVE operations on the redefining and redefined field, so can we say they use forward overlapping MOVE.
Thanks |
|
Back to top |
|
|
bittu Warnings : 1 New User
Joined: 07 Jan 2007 Posts: 19 Location: Bangalore
|
|
|
|
About my previous questions.
I am in the process of configuring compiler directives for Micro Focus server for COBOL codes to be compiled properly if migrated from mainframe to unix. So I need to know about FORWARD OVERLAPPING MOVES in cobol in order to decide rigth compiler option for Micro Focus.
Please just give me any real example on FORWARD OVERLAPPING MOVES in COBOL on mainfram platform.
Thanks |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Why are you not contacting Micro Focus for the answers to your questions? The only comments about overlapping operands in the COBOL Language Reference are:
Quote: |
6.1.8.7.1 Overlapping operands
When the sending and receiving fields of a data manipulation statement share a part of their storage (that is, when the operands overlap), the result of the execution of such a statement is unpredictable. |
and
Quote: |
6.1.8.6.2 Overlapping operands
When operands in an arithmetic statement share part of their storage (that is, when the operands overlap), the result of the execution of such a statement is unpredictable. |
So you're not going to find out on the mainframe side -- hence your need to contact Micro Focus. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
It should not take you more than 15 minutes to code up the variables and redefines to generate your own example |
And you can use the same code to test on both platforms/compilers. . . |
|
Back to top |
|
|
|