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
 
PLI Run JCL error with 806

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
View previous topic :: :: View next topic  
Author Message
shrivatsa
Warnings : 1

Active User


Joined: 17 Mar 2006
Posts: 174
Location: Bangalore

PostPosted: Wed Dec 05, 2018 12:23 pm    Post subject: PLI Run JCL error with 806
Reply with quote

I am executing hello world program. I was able to do the compile, but when I run the program I am getting the error 806 load module not found in the dataset. But when I checked the program is available.

Code:
//KC03G65B JOB (123),'MFT',CLASS=A,MSGCLASS=A,MSGLEVEL=(1,1),
//             NOTIFY=&SYSUID,REGION=0M
//**********************************************************************
//* RUN JCL FOR PL/I
//**********************************************************************
//GO   EXEC PGM=SRCEL01
//STEPLIB  DD DSN=KC03G65.MFT.PLI.LOADLIB,DISP=SHR
//SYSPRINT DD SYSOUT=*
//SYSIN DD DUMMY



Code:
01.33.27 JOB08439  IEW4007I FIND FOR MODULE SRCEL01  FAILED BECAUSE DIRECTORY EN
01.33.27 JOB08439  CSV003I REQUESTED MODULE SRCEL01  NOT FOUND
01.33.27 JOB08439  CSV028I ABEND806-04  JOBNAME=KC03G65B  STEPNAME=GO
01.33.27 JOB08439  IEA995I SYMPTOM DUMP OUTPUT  461
   461             SYSTEM COMPLETION CODE=806  REASON CODE=00000004
   461              TIME=01.33.27  SEQ=14450  CPU=0000  ASID=002D
   461              PSW AT TIME OF ERROR  070C1000   8127FAD6  ILC 2  INTC 0D
   461                NO ACTIVE MODULE FOUND
   461                NAME=UNKNOWN



Code:
 BROWSE            KC03G65.MFT.PLI.LOADLIB               Row 0000001 of 0000001
 Command ===>                                                  Scroll ===> PAGE
            Name     Prompt       Size   Created          Changed          ID
 _________ SRCEL01



Kindly let me know what could be the reason for this.
Back to top
View user's profile Send private message

Garry Carroll

Senior Member


Joined: 08 May 2006
Posts: 1035
Location: Dublin, Ireland / Edinburgh, Scotland

PostPosted: Wed Dec 05, 2018 1:29 pm    Post subject:
Reply with quote

The IEW4007I message is the clue here. The directory entry is invalid.

See : https://www.ibm.com/support/knowledgecenter/en/SSLTBW_2.1.0/com.ibm.zos.v2r1.ieam800/kk4007i.htm

What are the attributes of KC03G65.MFT.PLI.LOADLIB ?

Garry.
Back to top
View user's profile Send private message
Willy Jensen

Active User


Joined: 01 Sep 2015
Posts: 248
Location: Denmark

PostPosted: Wed Dec 05, 2018 3:03 pm    Post subject:
Reply with quote

The library display indicates that it is not a loadlib. Perhaps you have saved the object deck rather than the loadmodule?
Back to top
View user's profile Send private message
shrivatsa
Warnings : 1

Active User


Joined: 17 Mar 2006
Posts: 174
Location: Bangalore

PostPosted: Wed Dec 05, 2018 4:30 pm    Post subject: Reply to: PLI Run JCL error with 806
Reply with quote

Below is the current attributes of the PDS created. I tried to create the PDS with U format then my compile JCL abended with Maxcc=0012.

Code:
 Command ===>
                                                                    More:     +
 Data Set Name  . . . : KC03G65.MFT.PLI.LOADLIB

 General Data                          Current Allocation
  Management class . . : DEFAULT        Allocated tracks  . : 25
  Storage class  . . . : PRIM90         Allocated extents . : 1
   Volume serial . . . : KCTR37         Maximum dir. blocks : NOLIMIT
   Device type . . . . : 3390
  Data class . . . . . : **None**
   Organization  . . . : PO            Current Utilization
   Record format . . . : FB             Used pages  . . . . : 6
   Record length . . . : 80             % Utilized  . . . . : 2
   Block size  . . . . : 3200           Number of members . : 1
   1st extent tracks . : 25
   Secondary tracks  . : 25
   Data set name type  : LIBRARY       Dates
   Data set version  . : 1              Creation date . . . : 2018/12/05
                                        Referenced date . . : 2018/12/05
                                        Expiration date . . : ***None***



Compile JCL
Code:

//KC03G65B JOB NOTIFY=&SYSUID
//      SET MEM=SRCEL01
//PLI EXEC IBMZC,PARM='OBJECT,OPTIONS,LIST,MAP',REGION=0M
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//PLI.SYSIN  DD DSN=KC03G65.MFT.SRCELIB(&MEM),DISP=SHR
//PLI.SYSLIN DD DSN=KC03G65.MFT.PLI.LOADLIB(&MEM),DISP=SHR
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2123
Location: UK

PostPosted: Wed Dec 05, 2018 4:58 pm    Post subject: Reply to: PLI Run JCL error with 806
Reply with quote

You really need to read the PL/1 User Guide which explains everything you need to know about compiling and linking/binding.

You should also read the comments in the IBMZC procedure that you are using.

You can call a PDS anything you want - it still will not make it a loadlib unless it has the attributes of a loadlibrary and the member is the output from the linker/binder.

Edited to remove wrong information
Back to top
View user's profile Send private message
steve-myers

Active Member


Joined: 30 Nov 2013
Posts: 681
Location: The Universe

PostPosted: Wed Dec 05, 2018 8:06 pm    Post subject:
Reply with quote

You get one, and only one, chance to create a PDSE as a data set containing "program objects" (e.g. a binary executable program) or what amounts to a anything else, and that amounts to the agent that stores the first member in the data set. The binary output of a compiler like the PL/I compiler stored in the data set specified by the DD statement with DD name SYSLIN is in the anything else group.

The only agent that can create a "program object" is the Binder.

Properly speaking, your compile JCL should be something like -
Code:
//PLI EXEC IBMZCB,PARM.PLI='OBJECT,OPTIONS,LIST,MAP',REGION=0M
//PLI.SYSIN DD DSN=KC03G65.MFT.SRCELIB(&MEM),DISP=SHR
//BIND.SYSLMOD DD DSN=KC03G65.MFT.PLI.LOADLIB(&MEM),DISP=SHR

Do not actually use this JCL until you have verified that the parameter text in PARM.PLI='...' is correct. I suspect it is not.

The IBMZCB cataloged procedure has two steps. The first step runs the PL/I compiler. The second step runs the Binder.
Back to top
View user's profile Send private message
shrivatsa
Warnings : 1

Active User


Joined: 17 Mar 2006
Posts: 174
Location: Bangalore

PostPosted: Fri Dec 07, 2018 9:01 pm    Post subject: Reply to: PLI Run JCL error with 806
Reply with quote

Thanks to steve-myers his suggestion worked by using the given compile JCL and all others who helped me.

Thanks
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 -> PL/I & Assembler All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Error reading file in REXX module ashek15 CLIST & REXX 3 Wed Oct 24, 2018 4:50 am
No new posts PL/I read error for HFS files Joe Kirsch PL/I & Assembler 6 Fri Sep 28, 2018 9:13 pm
No new posts Error in IEBGENER supriyo kumar JCL & VSAM 1 Thu Sep 27, 2018 10:22 pm
No new posts Error while trying to open an AIX in ... amitc23 CICS 4 Tue Sep 04, 2018 12:15 pm
No new posts Error while initiation CICS program f... Ashishpanpaliya CICS 3 Mon Jul 16, 2018 5:12 pm

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