IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Forward Overlapping Moves


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
bittu
Warnings : 1

New User


Joined: 07 Jan 2007
Posts: 19
Location: Bangalore

PostPosted: Fri Jul 24, 2009 2:49 pm
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Fri Jul 24, 2009 3:03 pm
Reply with quote

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
View user's profile Send private message
bittu
Warnings : 1

New User


Joined: 07 Jan 2007
Posts: 19
Location: Bangalore

PostPosted: Fri Jul 24, 2009 3:34 pm
Reply with quote

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
View user's profile Send private message
bittu
Warnings : 1

New User


Joined: 07 Jan 2007
Posts: 19
Location: Bangalore

PostPosted: Fri Jul 24, 2009 5:23 pm
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Fri Jul 24, 2009 5:37 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Jul 24, 2009 9:06 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts FIELDS OVERLAPPING WITH MODE = IN OR ... CICS 3
No new posts Sort Card : To get the records with ... DFSORT/ICETOOL 7
No new posts Problem with overlapping fields DFSORT/ICETOOL 3
This topic is locked: you cannot edit posts or make replies. Fresher requirement forward profiles ... Mainframe Jobs 1
No new posts Error with overlapping fields in OUTR... DFSORT/ICETOOL 5
Search our Forums:

Back to Top