Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Forward Overlapping Moves

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Forward Overlapping Moves
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: 8057
Location: East Dubuque, Illinois, USA

PostPosted: Fri Jul 24, 2009 3:03 pm    Post subject:
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    Post subject: Reply to: Forward Overlapping Moves
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    Post subject: Reply to: Forward Overlapping Moves
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: 8057
Location: East Dubuque, Illinois, USA

PostPosted: Fri Jul 24, 2009 5:37 pm    Post subject:
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

Site Director


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

PostPosted: Fri Jul 24, 2009 9:06 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Sort Card : To get the records with ... pecsakthivel123 DFSORT/ICETOOL 7 Thu Dec 10, 2015 11:54 pm
No new posts Problem with overlapping fields abdul.faras DFSORT/ICETOOL 3 Mon Aug 26, 2013 1:27 pm
This topic is locked: you cannot edit posts or make replies. Fresher requirement forward profiles ... kumar32149 Mainframe Jobs 1 Thu Oct 11, 2012 11:30 pm
No new posts Error with overlapping fields in OUTR... kumar_jalluri DFSORT/ICETOOL 5 Tue Jul 10, 2012 3:39 pm
No new posts Why moves will not cause S0C7 abend? rgupta71 COBOL Programming 12 Wed Sep 14, 2011 2:50 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us