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

A SOC7 abend in a PLI program


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
vinodkumar.rao

New User


Joined: 29 Nov 2006
Posts: 4
Location: Chennai

PostPosted: Fri Jan 05, 2007 5:28 am
Reply with quote

Hi,

I have a PLI program that is going down with a SOC7 abend. It is raising this condition due to an error in a variable, that is declared as a numeric but is showing up alphanumeric characters. What I found was that, programmatically, there were no alphanumeric values moved into this variable, but yet it took up junk characters and failed. Here is the abend code: IBM0537S ONCODE=8097 Data exception. I understand this was raised due to another error in the program, but cannot find the error out. When I give the string range and stringsize complier options, then the code runs fine with the string range and string size conditions raised. This is strange and I am not able to find out why this is happening. Please let me know if anyone can help on this.

Thanks.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Fri Jan 19, 2007 9:06 pm
Reply with quote

Hello,

Make sure the variable was initialized to zero or whatever numeric value will work in your case. Unitialized numeric variables often cause 0c7's.
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 -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
No new posts Using API Gateway from CICS program CICS 0
No new posts ISAM and abend S03B JCL & VSAM 10
No new posts DB2 Event passed to the Application P... DB2 1
No new posts How to pass the PARM value to my targ... COBOL Programming 8
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
Search our Forums:

Back to Top