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

ABEND S806 with error 'DIRECTORY ENTRY IS NOT VALID'


IBM Mainframe Forums -> ABENDS & Debugging
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
narendrabade

New User


Joined: 27 Jan 2011
Posts: 6
Location: Pune

PostPosted: Fri Apr 08, 2011 6:14 pm
Reply with quote

While running the test JCL , I got abend S806 saying that
"IEW4007I FIND FOR MODULE XY2MS000 FAILED BECAUSE DIRECTORY ENTRY IS NOT VALID "

The given Programs LOAD along with called sub-program LOAD is present in PDS given in Steplib . I have checked the previous post on the same but could not find helpful!!

This program is IMS-COBOL program.

Can you please help me to solve this problem?

Thanks,
Narendra
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Fri Apr 08, 2011 6:18 pm
Reply with quote

Follow the manual suggestions?
Quote:
IEW4007I FIND FOR MODULE program-name FAILED BECAUSE DIRECTORY ENTRY IS
NOT VALID FOR A LOAD MODULE.

Explanation: An invalid or incorrect PDS directory entry was detected during processing of the Loader's FIND function when loading a load module.

System Action: An abend 806-04 will occur, accompanied by message IEW4007 in the job log when an attempt is made to locate the module.

User Response: Determine cause of the invalid directory entry, rebuild it and rerun the job. Ensure the specified entry exists in the specified library.
Back to top
View user's profile Send private message
narendrabade

New User


Joined: 27 Jan 2011
Posts: 6
Location: Pune

PostPosted: Fri Apr 08, 2011 7:23 pm
Reply with quote

I did not get you exactly what are you saying. Sorry !!
Back to top
View user's profile Send private message
narendrabade

New User


Joined: 27 Jan 2011
Posts: 6
Location: Pune

PostPosted: Fri Apr 08, 2011 7:40 pm
Reply with quote

Some qustion are pop-up in my mind like how to check " cause of the invalid directory entry, rebuild it"
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Fri Apr 08, 2011 7:49 pm
Reply with quote

1. Is it a PDS? Try to access it in ISPF 3.4 to find out.
2. If it is a PDS, is it defined correctly (U RECFM, no LRECL, BLKSIZE defined)?
3. If it is a PDS, and it is defined correctly, can you browse random members of the PDS? I'd pick the first, last, and one in the middle to check.
4. If it is okay so far, can you browse the specific load module having the problem?

Although if the load library doesn't have many entries, I'd probably just define a new one and recompile the modules I want in it. then delete the one that's having problems.

Based on your posts to date, I recommend you strongly consider going to the Beginners and Students Forum instead of this one. We expect you to be able to read error messages, interpret what they say, and then do what they say -- like a professional -- instead of asking for the most elementary help as you did.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Fri Apr 08, 2011 7:53 pm
Reply with quote

May be recompile, link-edit your program and execute the job 'gain.
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Fri Apr 08, 2011 8:44 pm
Reply with quote

I was also thinking that a compress of that PDS probably wouldn't hurt either.
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Sat Apr 09, 2011 4:58 am
Reply with quote

narendrabade wrote:

The given Programs LOAD along with called sub-program LOAD is present in PDS given in Steplib .


It dosn't matter if you can "see" that the load module is there. The message did not say that the module was missing, it said that the directory entry was invalid. If the load module was missing, you'd get a more "normal" S806. Can you browse the program? - I'd guess not.

Not sure if it is still the case, but a good way to screw up a PDS used to be to run your LINKEDIT with DISP=SHR and no other locking mechanism. Two links running at the same time, directory could get screwed. Also used to be possible on shared "text" PDSs (program sources). Seen it happen on ISPF and ROSCOE, although here the timing has to be much, much, closer as it doesn't take so much time to write the member.
Back to top
View user's profile Send private message
narendrabade

New User


Joined: 27 Jan 2011
Posts: 6
Location: Pune

PostPosted: Sat Apr 09, 2011 11:07 am
Reply with quote

Thanks for your reply

Yes, It is PDS and standard one that we are using for the application. I browsed the load present in the PDS and also checked that from which Changeman package, it has gone to production last time.

Also I recompiled and Link-Edited the Source Program present in the Changeman package but It didn't help me.

FYI..We always checkout the source program from production Library into changeman package and Use Changeman Load in steplib and below that we use standard production LOAD library.

Example:

STEPLIB DD DSN=CHANGEMAN.LOD,DISP=SHR
DD DSN=PRODUCTION.LOD,DISP=SHR

I ran JCL with both Load module separately but same problem occurred.

Just want to tell you, Whenever we compile the program in changeman, we got various compiling option like DB2 Compiling, Normal Compiling or DLITCBL compiling and various option..

As we have No DB2 in program, we keep the option 'N' and keep the option 'Y' for DLITCBL as it is IMS program.

Experts,
Please let me know if you want me to share more specific information or if you have any question for me?

Thanks,
Narendra
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Sat Apr 09, 2011 11:15 am
Reply with quote

time to restore the PDS from a <working> copy.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Sat Apr 09, 2011 5:08 pm
Reply with quote

:Loop

Your question is geting site-specific-question now. Get in contact with your site-support. They can help you the best.

:Exit


For a try -

1. Try to execute another program, present in the same Load-lib, whcih you are sure of, won't give you such an error and see what happens.

2. Create another Change-Man package and use the new load-library in your Job.

3. If nothing works, GO TO :Loop.
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 -> ABENDS & Debugging

 


Similar Topics
Topic Forum Replies
No new posts Error to read log with rexx CLIST & REXX 11
No new posts Error when install DB2 DB2 2
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
No new posts ISAM and abend S03B JCL & VSAM 9
No new posts Creating Unix Directory using COBOL i... COBOL Programming 2
Search our Forums:

Back to Top