MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

S0C1

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
ramlak
Beginner


Joined: 17 Apr 2007
Posts: 27
Topics: 6

PostPosted: Thu May 03, 2007 6:32 pm    Post subject: S0C1 Reply with quote

I am running a cobol program dont know why its giving S0C1 with reason code 000001. also says 'NO ACTIVE MODULE FOUND'
The control is not even coming to procedure divison.

It may be coz of some unresolved symbolics in the link-edit
but dont know how else to resolve it.

I indeed searched the forum but mine is too specific thats y am posting again.

any idea would help a lot.

Thanks,
Lak.
Back to top
View user's profile Send private message
CICS Guy
Intermediate


Joined: 30 Apr 2007
Posts: 292
Topics: 3

PostPosted: Thu May 03, 2007 6:40 pm    Post subject: Reply with quote

If, in fact, "The control is not even coming to procedure divison" then it is not finding the module.
YOU have to put forth the abilities that you aspire to, figure out what the system is trying to tell you......
Back to top
View user's profile Send private message
vkphani
Intermediate


Joined: 05 Sep 2003
Posts: 483
Topics: 48

PostPosted: Fri May 04, 2007 12:20 am    Post subject: Reply with quote

Ramlak,

Check for your load module in the load library.
Back to top
View user's profile Send private message Send e-mail
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Fri May 04, 2007 2:36 am    Post subject: Reply with quote

If the load module was not in the library it should gixe an x06 failure. I wouold check the link/bind to ensure the module has been marked as EXECUTABLE. If not then I would check for other messages in the link and also the compile messages - especially for references to EXTERNAL names
_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
Back to top
View user's profile Send private message
dz
Beginner


Joined: 02 Apr 2006
Posts: 26
Topics: 0

PostPosted: Fri May 04, 2007 8:04 am    Post subject: Reply with quote

Also check if, by accident, you have compiled a batch program with CICS precompiler. This wouls cause S0C1.
Back to top
View user's profile Send private message
ramlak
Beginner


Joined: 17 Apr 2007
Posts: 27
Topics: 6

PostPosted: Fri May 04, 2007 9:27 am    Post subject: Reply with quote

Thanks for all the immediate responses i will try and let you know the results

thanks
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12370
Topics: 75
Location: San Jose

PostPosted: Fri May 04, 2007 9:38 am    Post subject: Reply with quote

ramlak,

Check the following
Code:

0C1                                                                         
  System ABEND: S0C1                                                         
                                                                             
  Description:  An attempt was made to execute an invalid machine           
                instruction operation code.  The operation code is either   
                invalid or is for an instruction that is not available on   
                this CPU.                                                   
                                                                             
                This failure is usually due to a branch to an invalid storage
                location, as might occur in a load module with unresolved   
                external references, or when a branch to an address outside 
                of a program occurs. (Reason Code 1)                         
                                                                             
  User Action:  Correct the program logic or construction error and resubmit
                the job.  Possible causes for this abend include:           
                                                                             
                Amode was set to 24, but a branch was attempted to a         
                 31-bit or (on z/OS) a 64-bit address                       
                In assembler, coding 'B R14' when you meant to code 'BR R14'
                Subscript error occurred                                     
                "Clobbered" code; i.e., the executing program was           
                 corrupted in virtual storage and then a branch was         
                 performed into the corrupted code                           
                Tried to read a file that was not open                       
                Misspelled DDNAME followed by attempted I/O to same file     
                Error in parameters passed to subroutines                   
                Missing DD card followed by attempted I/O to same file       
                Recording mode was wrong, or density was incorrect           
                Bad load module, possible bad object deck in FORTRAN         
                  (unresolved external references)                           
                Missing dimension statement                                 
                Same name for an array and a subroutine                     
               COBOL: subroutine prog ID was the same as the entry name   
                      tried to call within COBOL sort I/O procedure       
                      tried to call a subroutine which could not be found
                      incomplete DCB for SORTIN file                     
                      using sort verb, DDNAME was not SORTOUT when the   
                        "giving" option was used.                         
                      executing sort-using after opening SORTIN file     


Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Fri May 04, 2007 9:41 am    Post subject: Reply with quote

That reminds me...I once had a S0C1 on soemthing that 'had not changed'. seems that one of the team had changed the length of the parm being passed back and forth between external modules but hadn't done all the required changes in the other (my) module. Thanks Graham M.!
_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
Back to top
View user's profile Send private message
ramlak
Beginner


Joined: 17 Apr 2007
Posts: 27
Topics: 6

PostPosted: Fri May 04, 2007 11:17 am    Post subject: Reply with quote

Thanks for all the tremendous replies ,
i have found that few LE modules cant be resolved in the linkedit section
i added the load library where the proc can call the loads like 'CEEBETBL,
CEESTART' etc..

thats solved my problem.

This board gives me lot of strength especailly when you think that no body to help you out. thanx guys Cheers Very Happy
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group