View previous topic :: View next topic
|
Author |
Message |
P.RAJESH Currently Banned New User
Joined: 20 Mar 2008 Posts: 54 Location: chennai
|
|
|
|
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 |
|
|
P.RAJESH Currently Banned New User
Joined: 20 Mar 2008 Posts: 54 Location: chennai
|
|
|
|
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 |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
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 |
|
|
shanuss
New User
Joined: 16 Jul 2008 Posts: 17 Location: Chennai
|
|
|
|
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 |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
karthikr44
Active User
Joined: 25 Aug 2007 Posts: 235 Location: Chennai
|
|
|
|
Hi,
Kindly find the attached file. It is really helpful to find the exact code location from offset.
Regards
RKARTHIK |
|
Back to top |
|
|
|