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

Possible reasons and solutions for s0c7 & s0c4


IBM Mainframe Forums -> ABENDS & Debugging
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
priya_gmain

New User


Joined: 18 Sep 2006
Posts: 7

PostPosted: Thu Oct 12, 2006 3:02 pm
Reply with quote

Hi

Wat is the possible reasons and solutions for s0c7 & s0c4

Regards
priya
Back to top
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1208
Location: Bangalore,India

PostPosted: Thu Oct 12, 2006 3:27 pm
Reply with quote

Hi there,

S0C4


An invalid main storage address was generated.

POSSIBLE CAUSES

1. Uninitialized index or a runaway index due to a program loop. (T
could also cause a S0C7).

2. An attempt to reference an output area before the data set was opene
after it was closed.

3. An attempt to execute a module with unresolved link-edit references.

4. The items specified in the USING lists of the calling and called p
grams are assumed by the compiler to be identical in order, data ty
and field length. Any discrepancy in this correspondence may result
an S0C4.

5. See also S0C1

WHAT TO DO


1. Check the values of the indexes and LINKAGE SECTION. (SHOW INDEX
LINKAGE)

2. Check the status of input and output data sets used. (SHOW FILEs)

3. Use COUNT with the AFTER command to check for program looping.


System ABEND: S0C7

Description: This ABEND is a data exception and can only occur when
decimal (packed) instructions are used. One of the
following can cause this error:

1) The sign or digit codes of one or more bytes
manipulated by the packed or CONVERT TO BINARY
instructions is invalid for packed decimal use.
Packed decimal digits must be in the range 0 through
9, with only the sign digit being a digit in the range
A through F.

2) Fields in decimal (packed) arithmetic overlap
incorrectly.

3) A packed decimal multiplicand has too many high-order
significant digits.

Possible causes for this abend include:

Subscript error, referenced beyond table
COBOL: working storage not initialized
bad data, should check data for errors
garbage in a field being tested or displayed
move zeroes to group level is display, had sublevels
that were not
period missing after imperative statements within AT
END clause
binary field in an arithmetic operation is not large
enough to accept result

User Action: Correct the format of the data being manipulated by the
packed decimal instructions in the program and rerun the
job.
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 -> ABENDS & Debugging

 


Similar Topics
Topic Forum Replies
No new posts Abend S0C4 11 (Page Translation Excep... PL/I & Assembler 16
No new posts S0C7 - Field getting overlayed COBOL Programming 2
No new posts S0C7 abend while running a Cobol Program COBOL Programming 2
No new posts S0C4 Reason Code 10 COBOL Programming 1
This topic is locked: you cannot edit posts or make replies. S0C4-X'11' issue - page translation e... JCL & VSAM 10
Search our Forums:

Back to Top