How to find line in code which cause an abend ?



Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS

How to find line in code which cause an abend ?

Postby Greenhouse » Tue Sep 02, 2008 1:59 pm

Hi everybody,
In my case abend is S0C4,
is it possible somehow to find which line in Cobol code cause it ?
Greenhouse
 
Posts: 25
Joined: Tue Sep 02, 2008 1:53 pm
Has thanked: 0 time
Been thanked: 0 time

Re: How to find line in code which cause an abend ?

Postby Greenhouse » Tue Sep 02, 2008 2:12 pm

(when i compile cobol)
Greenhouse
 
Posts: 25
Joined: Tue Sep 02, 2008 1:53 pm
Has thanked: 0 time
Been thanked: 0 time

Re: How to find line in code which cause an abend ?

Postby dick scherrer » Tue Sep 02, 2008 7:10 pm

Hello,

If the abend happens in a compile, it is possibly because the compile/link jcl is incorrect.

You need to talk with someone on your project or a system support person to have them show you the proper compile/link jcl for your system.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: How to find line in code which cause an abend ?

Postby Greenhouse » Wed Sep 03, 2008 11:27 am

thanks for reply,
i passed compilation with rc=0.
the problem was in auditor rules...
Greenhouse
 
Posts: 25
Joined: Tue Sep 02, 2008 1:53 pm
Has thanked: 0 time
Been thanked: 0 time

Re: How to find line in code which cause an abend ?

Postby dick scherrer » Wed Sep 03, 2008 11:59 am

Good to hear it is working - thank you for letting us know :)

d
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times


Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post