Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups 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
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
References
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 3564
Location: Brussels once more ...

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: 162
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: 1184
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: 3183
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 SNG

Senior Member


Joined: 06 Sep 2007
Posts: 446
Location: 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: 3183
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: 1508

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: 3183
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: 3183
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
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL All times are GMT + 6 Hours
Page 1 of 1