View previous topic :: View next topic
|
Author |
Message |
Jayakrishnanm
New User
Joined: 14 Jun 2007 Posts: 3 Location: MN
|
|
|
|
Hello,
I am trying to execute a sample pgm with following JCL, but recieves S0C1. Can anyone help me out?
//DFGATEST JOB (0334,221),'TESTING',MSGCLASS=R,NOTIFY=&SYSUID
//STEP01 EXEC PGM=LPGM1
//STEPLIB DD DSN=K546.WERADD.UIOP.DD.OBJLIB,DISP=SHR
//SYSOUT DD SYSOUT=*
IDENTIFICATION DIVISION.
PROGRAM-ID. PGM1.
PROCEDURE DIVISION.
DISPLAY "I DID THIS !!!".
STOP RUN. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Error messages may help |
|
Back to top |
|
|
Jayakrishnanm
New User
Joined: 14 Jun 2007 Posts: 3 Location: MN
|
|
|
|
SYSTEM COMPLETION CODE=0C1 REASON CODE=00000001
TIME=03.25.37 SEQ=03045 CPU=0000 ASID=00B3
PSW AT TIME OF ERROR 078D0000 80000002 ILC 2 INTC 01
NO ACTIVE MODULE FOUND
NAME=UNKNOWN |
|
Back to top |
|
|
sril.krishy
Active User
Joined: 30 Jul 2005 Posts: 183 Location: hyderabad
|
|
|
|
NO ACTIVE MODULE FOUND
Please check the program which you compliled and linked and the program that you mentioned in the JCL (EXEC PGM=LPGM1 ).
Thanks
Krishy |
|
Back to top |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
jaya,
Quote: |
NO ACTIVE MODULE FOUND
|
One reason might be because the load module is not available in the library specified in teh STEPLIB. Check if the load exists in the library. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
Quote: |
One reason might be because the load module is not available in the library specified in teh STEPLIB. Check if the load exists in the library. |
nahhhhh that would give a nice 806 |
|
Back to top |
|
|
Gnanas N
Active Member
Joined: 06 Sep 2007 Posts: 792 Location: Chennai, India
|
|
|
|
Please refer the description & User actions for QW S0C1. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
please remember to post suggestions available to everybody
qw implies the installation of a charge add on |
|
Back to top |
|
|
Jayakrishnanm
New User
Joined: 14 Jun 2007 Posts: 3 Location: MN
|
|
|
|
my Link JCL was wrong. I corrected it and everythng went fine. Thanks for the replies. |
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
enrico,
Why 0C1 and not 806?
My guess is that the objlib had a member name entry for the pgm, but the content was not assembler code. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
Hi Jack,
all the abends related to module management are of the xx6 series
so after all, unless the loader itself was messed up
( not easy since the checking done by the loader is quite sophisticated )
a program had started executing
a wrong linkage editor might cause a wild branch,
a wild branch might easily give the false symptom "NO ACTIVE MODULE" |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
You can play lots of tricks with assembler and linkage editor..
usually people do not care to set properly the module flags,
and almost all the rubbish after a successful linkage editor get marked as "executable"
the proper approach would be to mark modules with the proper flags
fo example a table of data that gets loaded should be marked
NX ... not executable
OL ... Load only
trying to issue a link against such thing would give a 406 abend,
but the load would be successful |
|
Back to top |
|
|
|