Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Sample pgm with following JCL, but recieves S0C1

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Sample pgm with following JCL, but recieves S0C1
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: 8593
Location: Back in jolly old England

PostPosted: Tue May 20, 2008 1:25 pm    Post subject:
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    Post subject:
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    Post subject:
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: 1288
Location: Chennai, India

PostPosted: Tue May 20, 2008 2:23 pm    Post subject: Reply to: S0C1
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10308
Location: italy

PostPosted: Tue May 20, 2008 2:31 pm    Post subject: Reply to: S0C1
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: 788
Location: Chennai, India

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

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

Global Moderator


Joined: 14 Mar 2007
Posts: 10308
Location: italy

PostPosted: Tue May 20, 2008 2:47 pm    Post subject: Reply to: S0C1
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    Post subject:
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    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10308
Location: italy

PostPosted: Wed May 21, 2008 12:06 am    Post subject: Reply to: Sample pgm with following JCL, but recieves S0C1
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10308
Location: italy

PostPosted: Wed May 21, 2008 12:19 am    Post subject: Reply to: Sample pgm with following JCL, but recieves S0C1
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts A sample of exit program for exit XMN... lind sh CICS 2 Mon Oct 03, 2016 5:07 pm
No new posts Can I use sort to select sample recor... Steve Ironmonger DFSORT/ICETOOL 3 Tue Nov 10, 2015 10:02 pm
No new posts Simple Assembler Program facing S0C1 ... mjadwani2785 PL/I & Assembler 4 Wed Jun 17, 2015 8:58 pm
No new posts sample report program kiran_65 COBOL Programming 4 Sat Jun 06, 2015 4:19 pm
No new posts CICS S0C1 Abend krish2309 CICS 6 Mon Mar 02, 2015 10:28 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us