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
 

 

S0C7 While calling a program

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> ABENDS & Debugging
View previous topic :: :: View next topic  
Author Message
dilipsvd

New User


Joined: 09 Jan 2008
Posts: 4
Location: Baskingridge

PostPosted: Fri May 28, 2010 4:43 am    Post subject: S0C7 While calling a program
Reply with quote

I m getting S0C7 when calling a program.

CALL 'ABCD' USING A-XYZ B-XYZ.---> In this line getting S0C7

Can somebody tell me what might be causing this.
I have verified the linkage data and everything is valued correctly.
Also If I run the same Job thru expeditor I m not getting S0C7 abend. job runs successfully.
Back to top
View user's profile Send private message

CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2150
Location: At my coffee table

PostPosted: Fri May 28, 2010 5:22 am    Post subject:
Reply with quote

dilipsvd wrote:
I m getting S0C7 when calling a program.
CALL 'ABCD' USING A-XYZ B-XYZ.---> In this line getting S0C7
Can somebody tell me what might be causing this.
Bad data.....
Quote:
I have verified the linkage data and everything is valued correctly.
And how did you 'verify' this?
Quote:
Also If I run the same Job thru expeditor I m not getting S0C7 abend. job runs successfully.
Curious.....
Back to top
View user's profile Send private message
dilipsvd

New User


Joined: 09 Jan 2008
Posts: 4
Location: Baskingridge

PostPosted: Fri May 28, 2010 5:42 am    Post subject:
Reply with quote

1) Verified data using Display (COMP3 were moved to numeric and so on)
2) and in expeditor

My understanding was, even if there is bad data in the linkage it should not cause problem until it is used in the calling program
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Fri May 28, 2010 5:58 am    Post subject:
Reply with quote

Hello,

Quote:
My understanding was, even if there is bad data in the linkage it should not cause problem until it is used in the calling program
Either your understanding is incorrect or this is a typo. . .

If a field is defined as comp-3 and does not have valid numeric data, it can cause a s0c7 in either the calling or the called module. . . Suggest you find what value is in the field when the 0c7 happens.

One reason that the run might run ok under xpediter is that some of the values are at different places in memory than when not run with Xpediter and sometimes there is a valid numeric value and other times not. Suggest looking for an uninitialized variable. A good practice is to move zeros (or some other value) to all comp-3 fields (either as a VALUE, an INITIALIZE, or a MOVE).
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2150
Location: At my coffee table

PostPosted: Fri May 28, 2010 6:26 am    Post subject:
Reply with quote

dilipsvd wrote:
CALL 'ABCD' USING A-XYZ B-XYZ.---> In this line getting S0C7
What proof is it 'this line' that is causing the S0C7? And don't give me that 'expeditor' crap, look at the dump, all the answers are there.
Are you sure that it is not a S0C4?
Where does the PSW point to? What is the assembler code at that (always provided) PSW?
CALLs do not S0C7, they might S0C4 or others, but S0C7 requires an assembler instruction that is interruptible by a 'data exception'.....
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 -> ABENDS & Debugging All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SQL query not working in Cobol program. CuriousMainframer COBOL Programming 14 Wed Feb 22, 2017 5:56 pm
No new posts Calling procedure with multiple entri... steve-myers PL/I & Assembler 5 Fri Jan 27, 2017 3:33 pm
No new posts Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts Need Suggestion on COBOL program vickey_dw COBOL Programming 5 Thu Jan 05, 2017 10:55 pm
This topic is locked: you cannot edit posts or make replies. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm


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