MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

SOC-4 ( segment translation error ) in Assembler

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
mainframemouli
Beginner


Joined: 23 Feb 2005
Posts: 87
Topics: 33

PostPosted: Wed May 17, 2006 10:12 am    Post subject: SOC-4 ( segment translation error ) in Assembler Reply with quote

I am getting a soc4 in assembler program.
below is the Fault analyzer details for the abend.

Code:

A program-interruption code 0010 (Segment-Translation Exception) is associated
with this abend and indicates that:                                           

Machine Instruction . . . . : D201B3467004  MVC   838(2,R11),4(R7)         
  At Address. . . . . . . . : 0007FEA6                                     
  AMODE . . . . . . . . . . : 31                                           
  Failing Operand . . . . . : Second operand                               
  First Operand Address . . : 00080436 (961482 bytes of storage addressable)
  First Operand Length. . . : 2                                             
  First Operand Storage . . : 0000  *..*                                   
  Second Operand Address. . : 00791804 (Storage invalid)                   
  Second Operand Length . . : 2                                             
                                                                           
Program Status Word (PSW) . : 078D0000 8007FEA6                             

R0:  00000000 (2048 bytes of storage addressable)         
R1:  00080230 (962000 bytes of storage addressable)       
R2:  00000050 (1968 bytes of storage addressable)         
R3:  000711C0 (Module SYNCSORT + X'71C0')                 
R4:  000097EE (Module NTQPCON1 CSECT NTQPCON1 + X'2356') 
R5:  00005AC6 (Storage invalid)                           
R6:  8007C694 (977260 bytes of storage addressable)       
R7:  00791800 (Storage invalid)                           
R8:  009B00F0 (73488 bytes of storage addressable)       
R9:  0006F254 (Module SYNCSORT + X'5254')                 
R10: 00167DB8 (12872 bytes of storage addressable)       
R11: 000800F0 (962320 bytes of storage addressable)       
R12: 0006F254 (Module SYNCSORT + X'5254')                 
R13: 00071000 (Module SYNCSORT + X'7000')                 
R14: 8007FE8C (962932 bytes of storage addressable)       
R15: 00000000 (2048 bytes of storage addressable)         


Compile listing of the program is not available ..can any one guide me in
how to go about this abend and debug the same.....

R7 register is having a invalid storage what does it mean....
Back to top
View user's profile Send private message
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Wed May 17, 2006 12:29 pm    Post subject: Reply with quote

If you don't have the source, there is no point in trying to debug it ... you can't fix it.
(well, you could run a diassembler, I suppose)

If this is in syncsort, take a dump when the abend ends and call the vendor.

If this is your own program,... compile the source, find the instruction that appears to be in error (look for the hex codes shown in the PSW) and trace back through the logic of the program to find why R7 is pointing to storage that your program can't address. It may be something as simple as overrunning an array, or it may be something complex like an incomplete complex data structure, an overwrite of storage by something else, or any of an inumerable number of other reasons.
Back to top
View user's profile Send private message Visit poster's website
mainframemouli
Beginner


Joined: 23 Feb 2005
Posts: 87
Topics: 33

PostPosted: Wed May 17, 2006 12:37 pm    Post subject: Reply with quote

yes,of course internal sort is being used in the program

+WER999A NTQPTES1,CONNECT1, - UNSUCCESSFUL SORT 0C4 S

i am getting a above message in the Fault Analyszer , is that a problem with the Suncsort???
Back to top
View user's profile Send private message
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Wed May 17, 2006 1:50 pm    Post subject: Reply with quote

I've never used Syncsort, but it looks like it is reporting back the 0C4 and that the commonly used base regiseter (R12) points to SYNCSORT code.
Back to top
View user's profile Send private message Visit poster's website
Bill Dennis
Advanced


Joined: 03 Dec 2002
Posts: 579
Topics: 1
Location: Iowa, USA

PostPosted: Thu May 18, 2006 8:21 am    Post subject: Reply with quote

The instruction is attempting to move data from location R7 +4 but the value in R7 is not a valid storage address for your program.

-Examine where R7 gets loaded/modified in your program!
_________________
Regards,
Bill Dennis

Disclaimer: My comments on this foorum are my own and do not represent the opinions or suggestions of any other person or business entity.
Back to top
View user's profile Send private message
mainframemouli
Beginner


Joined: 23 Feb 2005
Posts: 87
Topics: 33

PostPosted: Thu May 25, 2006 12:21 pm    Post subject: Reply with quote

The Problem is resolved...
since there is a upgradation in the Region 2 days before that run there is a problem.

The solution is :
Sortin DD statement is the last DD statement in the Job.

Either you can add a SORTOUT DD DUMMY statement after the sortin or

SORTIN statement should not be the Last DD statement....

I arrived to this solution on Trial and Error basis ..can anyone help me why is it so....?????????
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group