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

move correspanding--SCO7


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
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
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
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
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
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: 8696
Location: Dubuque, Iowa, USA

PostPosted: Fri Jul 18, 2008 5:53 pm
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts COBOL - Move S9(11)v9(7) COMP-3 to -(... COBOL Programming 5
No new posts How to move the first field of each r... DFSORT/ICETOOL 5
No new posts How to move DB2 Installation HLQ DB2 4
No new posts How to move values from single dimens... COBOL Programming 1
No new posts Reading the CSV data in COBOL and mov... COBOL Programming 4
Search our Forums:

Back to Top