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

Sample pgm with following JCL, but recieves S0C1


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Jayakrishnanm

New User


Joined: 14 Jun 2007
Posts: 3
Location: MN

PostPosted: Tue May 20, 2008 1:18 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue May 20, 2008 1:25 pm
Reply with quote

Error messages may help
Back to top
View user's profile Send private message
Jayakrishnanm

New User


Joined: 14 Jun 2007
Posts: 3
Location: MN

PostPosted: Tue May 20, 2008 1:55 pm
Reply with quote

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
View user's profile Send private message
sril.krishy

Active User


Joined: 30 Jul 2005
Posts: 183
Location: hyderabad

PostPosted: Tue May 20, 2008 2:20 pm
Reply with quote

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
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Tue May 20, 2008 2:23 pm
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue May 20, 2008 2:31 pm
Reply with quote

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 icon_biggrin.gif that would give a nice 806 icon_biggrin.gif
Back to top
View user's profile Send private message
Gnanas N

Active Member


Joined: 06 Sep 2007
Posts: 792
Location: Chennai, India

PostPosted: Tue May 20, 2008 2:40 pm
Reply with quote

Please refer the description & User actions for QW S0C1.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue May 20, 2008 2:47 pm
Reply with quote

please remember to post suggestions available to everybody
qw implies the installation of a charge add on
Back to top
View user's profile Send private message
Jayakrishnanm

New User


Joined: 14 Jun 2007
Posts: 3
Location: MN

PostPosted: Tue May 20, 2008 3:37 pm
Reply with quote

my Link JCL was wrong. I corrected it and everythng went fine. Thanks for the replies.
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Tue May 20, 2008 11:55 pm
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed May 21, 2008 12:06 am
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed May 21, 2008 12:19 am
Reply with quote

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
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Help needed to assemble IMS sample co... ABENDS & Debugging 4
This topic is locked: you cannot edit posts or make replies. Sample CICS Webservices Program CICS 1
No new posts Where to get sample for processing RM... PL/I & Assembler 2
No new posts A sample of exit program for exit XMN... CICS 2
No new posts Can I use sort to select sample recor... DFSORT/ICETOOL 3
Search our Forums:

Back to Top