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

S0C4 abend, when I used 2 copybooks in my Linkage section


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
rohin

New User


Joined: 29 Apr 2005
Posts: 21
Location: Gurgaon, India

PostPosted: Sun May 11, 2008 5:33 pm
Reply with quote

Hi,

Could somebody please explain or forward any relevant document on the following reasons?

1. I was getting S0C4 abend, when I used 2 copybooks in my Linkage section. This got solved when I removed one of the copybook. I understand that there is a funda that LS variable should be like
01 LS-VAR.
03 LS-VAR-LEN
03 LS-VAR-TXT....
But I have seen that in our shop, it does not give any error for multiple 01 level declarations in LS. Could anyone please explain?

2. Also, I am getting S0C4 now when my program is executing STOP RUN statement. Any explanation?

Regards,
Rohin
Back to top
View user's profile Send private message
CICS Guy

Senior Member


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

PostPosted: Sun May 11, 2008 5:45 pm
Reply with quote

rohin wrote:
But I have seen that in our shop, it does not give any error for multiple 01 level declarations in LS. Could anyone please explain?
You can have as many 01s you want, but each needs to have addressability established before you access it.
Quote:
I understand that there is a funda that LS variable should be like
01 LS-VAR.
03 LS-VAR-LEN
03 LS-VAR-TXT....
This is true to access the JCL PARM field, but not necessarily true for other passed data in the linkage section.
Back to top
View user's profile Send private message
rohin

New User


Joined: 29 Apr 2005
Posts: 21
Location: Gurgaon, India

PostPosted: Mon May 12, 2008 10:20 am
Reply with quote

Thanks for your help. Could anyone please explain the occurance of S0C4 while executing STOP RUN command?
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: Mon May 12, 2008 11:35 am
Reply with quote

Hello,

If the program has an internal sort, it may be that you are issuing the STOP RUN while still in the sort. This very often causes an 0c4.
Back to top
View user's profile Send private message
mytags

New User


Joined: 28 Apr 2008
Posts: 63
Location: US

PostPosted: Mon May 12, 2008 12:41 pm
Reply with quote

Hi,
My suggestion is that it is due to mismatch of copy book .By replacing with accurate copy book for the program we can over come this error.
thanks
hari
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 -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts ISAM and abend S03B JCL & VSAM 10
No new posts Using Dynamic file handler in the Fil... COBOL Programming 2
No new posts Abend S0C4 11 (Page Translation Excep... PL/I & Assembler 16
No new posts WER999A - UNSUCCESSFUL SORT 8ED U Ab... SYNCSORT 5
Search our Forums:

Back to Top