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
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: S0C4 abend, when I used 2 copybooks in my Linkage section
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: 2150
Location: At my coffee table

PostPosted: Sun May 11, 2008 5:45 pm    Post subject: Re: S0C4-LINKAGE SECTION error
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    Post subject: Reply to: S0C4-LINKAGE SECTION error
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

Site Director


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

PostPosted: Mon May 12, 2008 11:35 am    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts IMS BMP program causes 878 system abend Artemk IMS DB/DC 7 Tue Nov 22, 2016 8:26 pm
No new posts abend sort based on count records in ... anatol DFSORT/ICETOOL 5 Mon Oct 17, 2016 10:10 pm
No new posts hot to get details when "EXEC CI... Andi1982 CICS 11 Tue Sep 20, 2016 5:01 pm
No new posts S213-14 ABEND explantion Apurva Mehta JCL & VSAM 5 Thu Jul 07, 2016 10:56 pm
No new posts How to determine where is error in ab... jackzhang75 PL/I & Assembler 13 Fri Apr 15, 2016 2:01 am


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