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
 

 

move correspanding--SCO7

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
P.RAJESH
Currently Banned

New User


Joined: 20 Mar 2008
Posts: 54
Location: chennai

PostPosted: Wed Jul 16, 2008 12:51 pm    Post subject: move correspanding--SCO7
Reply with quote

Hi all,

I got SCO7 abend while exectuing a cobol programme.

I found out the correspanding move but it is move correspanding (it contains nearly 60 fields )

how to findout in the movecorrespands(in which fileds it showing SCO7) ?.

compile unit offset +00000922 at entry offset +00000922.

Thanks & Rgd's
Rajesh
Back to top
View user's profile Send private message

P.RAJESH
Currently Banned

New User


Joined: 20 Mar 2008
Posts: 54
Location: chennai

PostPosted: Wed Jul 16, 2008 1:19 pm    Post subject:
Reply with quote

i written manually all 60 move statements and i found which is thorwing SCO7 message.

Is there any other way with writting manullay all move statements.

Thanks in advance
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Wed Jul 16, 2008 1:41 pm    Post subject:
Reply with quote

well, you could look at your input data,

or (now I realize that this is very undesirable, but)

you could actually lay code in your program to validate input data to insure that it is at least data-type correct. who know's, you could include application validation.

I personnally always code a VALIDATION section to proof all input data. The only thing that I don't prove is db2 retrieved data, because it will always be data-type correct.

now by adding the validation, you could leave the corresponding parm in your move statement.

by the way. the problem you encountered is one of the reasons that the archaic, rookie, stupid, very unprofessional MOVE CORRESPONDING is not used by most professionals. Most professionals know enough about edit macros and rexx to enable them to generate MOVEs for elementary items automatically. To us 60, 600, 6000 fields, does not matter.
Back to top
View user's profile Send private message
shanuss

New User


Joined: 16 Jul 2008
Posts: 17
Location: Chennai

PostPosted: Fri Jul 18, 2008 5:38 pm    Post subject: Re: move correspanding--SCO7
Reply with quote

P.RAJESH wrote:

how to findout in the movecorrespands(in which fileds it showing SCO7) ?.

compile unit offset +00000922 at entry offset +00000922.



Can anyone answer how we can find out the erraneous move from the offset value???
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7992
Location: Bellevue, IA

PostPosted: Fri Jul 18, 2008 5:53 pm    Post subject:
Reply with quote

When compiling the program use the LIST or OFFSET options. LIST displays the Assembler equivalent statements for each COBOL statement while OFFSET displays the verb and entry offsets for each COBOL statement. The offset in the error message should match an offset in the program (for LIST), or for OFFSET may match an offset (if not, the offset will be between two verb offsets and the first verb is the problem). I'm not sure if any of this will help with MOVE CORRESPONDING, though.
Back to top
View user's profile Send private message
karthikr44

Active User


Joined: 25 Aug 2007
Posts: 235
Location: Chennai

PostPosted: Fri Jul 18, 2008 9:16 pm    Post subject: Reply to: move correspanding--SCO7
Reply with quote

Hi,

Kindly find the attached file. It is really helpful to find the exact code location from offset.

Regards
RKARTHIK
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 DB2 9.1.0 not move values to Host-Var... Miguel Fernandez DB2 8 Wed Jan 25, 2017 8:24 pm
No new posts DB2 9.1.0 not move values to Host-Var... Miguel Fernandez DB2 0 Wed Jan 25, 2017 8:23 pm
No new posts DB2 9.1.0 not move values to Host-Var... Miguel Fernandez DB2 0 Wed Jan 25, 2017 8:21 pm
This topic is locked: you cannot edit posts or make replies. How to move a long alphanumeric data ... lind sh COBOL Programming 8 Mon Dec 05, 2016 7:51 pm
No new posts Protection Exception while move 0 to ... Kevin Vaz CICS 10 Tue Oct 18, 2016 4:19 pm


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