MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

S806 Abend while executing the PL/1 program

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
priyam
Beginner


Joined: 05 Jul 2006
Posts: 16
Topics: 12

PostPosted: Tue May 08, 2007 12:06 am    Post subject: S806 Abend while executing the PL/1 program Reply with quote

My code is:

//IN11393C JOB (,,00),'TEST1',
// MSGLEVEL=(1,1),NOTIFY=&SYSUID,TIME=(0,59),
// MSGCLASS=H,REGION=4096K
//STEP1 EXEC PLIXCLG
//PLI.SYSIN DD *
HELLO:PROC OPTIONS(MAIN);
PUT SKIP LIST('HELLO WORLD!!');
END HELLO;
/*

When I submit the above code, am getting S806 abend.Kindly help me in this.
Back to top
View user's profile Send private message
bauer
Intermediate


Joined: 10 Oct 2003
Posts: 317
Topics: 50
Location: Germany

PostPosted: Tue May 08, 2007 12:36 am    Post subject: Reply with quote

priyam,

check the reasoncode !

See attached explenation from the userguide.



Explanation: The supervisor, or the Supervisor Call (SVC) for the BLDL (build a directory entry list) macro, detected an error during the processing of a LINK(X), XCTL(X),
ATTACH(X), or LOAD macro with the EP (entry point) or EPLOC (EP location (address)) operand.

The reason code in register 15 identifies the error:

Reason Code (hex) Explanation

04 The system could not find the module, whose entry point is the value of the EP or EPLOC operand, in the indicated library (private library, job library, or link library). This situation
can occur when LSEARCH=YES is specified on the macro and the limited library search fails to locate the module.

08 An uncorrectable I/O error occurred when the BLDL control program routine attempted to search the directory of the library that contained the program whose entry point was
specified in the EP or EPLOC operand. This can occur if the specified library is an uninitialized partitioned data set (PDS).

An incorrect data extent block (DEB) has been detected by the BLDL control program. The DEB was built in other than protect key 0 through 7.

0C The supervisor attempted to search a library for the program that the EP or EPLOC operand specifies and found that the library data control block (DCB) is not open.

10 A program issued a LOAD macro with the explicit load option, but there is no DCB parameter. For explicit loads, the program must supply the DCB parameter with the macro
because the system searches for the module that the LOAD specifies only in the library that the DCB parameter specifies.

14 The system could not find the module, whose entry point is the value of an EP or EPLOC operand of a XCTL(X) macro, in the link pack area (LPA), which is where the module
must be when the module is requested by an SVC routine.

18 An SVC routine issued a XCTL(X) macro for a module. The system tried to search the link pack area directory to find the module, but the directory had not as yet been built.

1C The data control block (DCB), included as part of a LINK(X), LOAD, XCTL(X), or ATTACH(X) macro is incorrect.

2C Internal error.




regards,
bauer
Back to top
View user's profile Send private message
bauer
Intermediate


Joined: 10 Oct 2003
Posts: 317
Topics: 50
Location: Germany

PostPosted: Tue May 08, 2007 12:47 am    Post subject: Reply with quote

priyam,

in case the procedure PLIXCLG is the original, unmodified version, override sysin with PL1L, not with PLI, start coding PL1 at column 2, not at column 1.

Regards,
bauer


Code:

//STEP1 EXEC PLIXCLG
//PL1L.SYSIN DD *
   HELLO:PROC OPTIONS(MAIN);
   PUT SKIP LIST('HELLO WORLD!!');
   END HELLO;
/*


Back to top
View user's profile Send private message
ramlak
Beginner


Joined: 17 Apr 2007
Posts: 27
Topics: 6

PostPosted: Tue May 08, 2007 9:23 am    Post subject: Reply with quote

I am not sure abt this but i think it may be because of the load module not found
in the loadl library.

That is why you generally get s806

chek ur load and load library..... hope this helps.

cheers.
Back to top
View user's profile Send private message
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Tue May 08, 2007 9:35 am    Post subject: Reply with quote

Actually, as it is a Compile, Link and Go the load module goes to a temp library. looking at the code it looks ok but I would still check the output from the compile and then from the link. Actually, check the return codes from the JESMSGLG.
I just ran it and it gave 00 for all 3 steps.

And the source goes in at
Code:
//PLI.SYSIN DD *

unless modified.
_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
Back to top
View user's profile Send private message
priyam
Beginner


Joined: 05 Jul 2006
Posts: 16
Topics: 12

PostPosted: Wed May 09, 2007 6:12 am    Post subject: Reply with quote

Its working fine now. There was a problem in my load module.
Thanks a lot for all ur replies.
Back to top
View user's profile Send private message
jajularamesh
Beginner


Joined: 14 Apr 2006
Posts: 87
Topics: 33

PostPosted: Mon Jun 04, 2007 8:26 am    Post subject: Reply with quote

If load module is not found then this error usually occurs


Regards,
Venkata Apparao
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group