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

How to solve U0476 Abend?


IBM Mainframe Forums -> IMS DB/DC
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Haripriya3103

New User


Joined: 29 Jun 2005
Posts: 3

PostPosted: Thu Jan 12, 2006 11:16 am
Reply with quote

Am facing an IMS U0476 abend, the order pf PCB in the PSB and in the ENTRY statement are same. Is there any thing else i need to look into in order to solve this Abend.
Back to top
View user's profile Send private message
itssreehere
Warnings : 1

New User


Joined: 10 Jan 2006
Posts: 65
Location: chennai

PostPosted: Thu Jan 12, 2006 12:39 pm
Reply with quote

Usually you get this abend when the DLI call specifies a PCB, that is not addressed in the entry statement.

PCB's exists out side the application program.So we need to address them.That's what entry statement does, gets address of PCB's.

Check following things,

In linkage section order of pcb's is not a matter.but your pcb should be there.Entry statement should be in the same order as in PSB.
CAll should have a pcb that was properly addressed in entry as well as present in linkage.

With out seeing the code can't give a specific answer. If it is not any one of these reasons, please share what was the reason.

Sreejith.K.K
Back to top
View user's profile Send private message
Bitneuker

CICS Moderator


Joined: 07 Nov 2005
Posts: 1104
Location: The Netherlands at Hole 19

PostPosted: Thu Jan 12, 2006 6:02 pm
Reply with quote

In addition: on this site there is a manual explaining in detail. To avoid large answers by us my advise is to look into this manual. You can find it in the manuals menue/Messages & Codes/IMS Messages & Codes Vol I Vol II/Chapter IMS Abend Codes. Btw: these are the codes I would like to be inserted in the Abend kit in addition to the status codes and IPI-codes.

@itssreehere: nice to meet a fellow IMS expert here.
Back to top
View user's profile Send private message
tommy-mani

New User


Joined: 05 Feb 2007
Posts: 2
Location: Chennai

PostPosted: Mon Feb 05, 2007 12:23 pm
Reply with quote

Hi Sree,

I have coded in the same way as how you have explained even then I am getting the same abend. I have checked the linkage entry and PSB its all in the same order.

To give you more info about my program, my program is involving both IMS and DB2, since this is the first time am working with DB2 can you please help me in sorting this problem out.
Back to top
View user's profile Send private message
Bitneuker

CICS Moderator


Joined: 07 Nov 2005
Posts: 1104
Location: The Netherlands at Hole 19

PostPosted: Mon Feb 05, 2007 5:33 pm
Reply with quote

Did you check the possible reasons like language type? From the link in my signature:
Quote:
0476
Explanation:
A DL/I call does not include a valid PCB address. The PCB address in the DL/I call (second parameter or third, if count is the first parameter) is not one of the PCB addresses passed to the application program at its entry point.

Some possible causes for this failure are:

An address for an AIB was provided but the first eight bytes of the block do not equal 'DFSAIB'.
The PSB language specified is not the same as that of the application program.
The call requires a PCB address, but the function is the last entry in the call list.
The address of the PCB in the call is not one of the PCB addresses passed to the application at its entry point.
An online program issued an UNLD call. The UNLD call is an internal DL/I call and should never be issued by an application program.
This abend can be the result of an improperly assembled or generated application program.

System Action:
The application program terminates abnormally.

Programmer Response:
Correct the parameter list and resubmit the job.

Change the PSB language specified to that of the application program.
Correct the application program DL/I call statements.
Problem Determination:
4, 17d



Please provide more information like:
PSB
DLI-call that failes
Status-codes if any
Back to top
View user's profile Send private message
tommy-mani

New User


Joined: 05 Feb 2007
Posts: 2
Location: Chennai

PostPosted: Mon Feb 05, 2007 8:39 pm
Reply with quote

Thanks for the Kind info Bit!!!

I have checked the link which you have given in your previous mail. I have made it sure everything looks good as per your info. anyways I am trying with all other possibilities and update you on the same
Back to top
View user's profile Send private message
shamsundar_mk

New User


Joined: 18 May 2007
Posts: 30
Location: CHENNAI

PostPosted: Fri Feb 22, 2008 9:59 pm
Reply with quote

Hi,

We expecting the answer for same question, pls any one try to answer...
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Feb 22, 2008 10:14 pm
Reply with quote

Hello,

You do realize that the topic has been idle for over a year. . .

Mabe you will wake something in someone. . . .
Back to top
View user's profile Send private message
Bitneuker

CICS Moderator


Joined: 07 Nov 2005
Posts: 1104
Location: The Netherlands at Hole 19

PostPosted: Fri Feb 22, 2008 10:40 pm
Reply with quote

I won't be awoken icon_wink.gif
Back to top
View user's profile Send private message
Sandy Zimmer

Active Member


Joined: 13 Jun 2007
Posts: 826
Location: Wilmington, DE

PostPosted: Fri Feb 22, 2008 10:43 pm
Reply with quote

Actually, Dick, this topic was started over 2 years ago! At least people are searching the forum to find previous topics matching their problem! YAY!!!
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Feb 22, 2008 10:58 pm
Reply with quote

Quote:
I won't be awoken
Sleep-typing, are ya icon_smile.gif

Quote:
this topic was started over 2 years ago
I was only counting from last response. . .

Yup, searching is good icon_smile.gif

d
Back to top
View user's profile Send private message
diwakar_rao

New User


Joined: 04 Mar 2007
Posts: 14
Location: Chennai

PostPosted: Wed Jul 23, 2008 2:09 pm
Reply with quote

Hi,

i am getting U0476 Abend. Let me know how to resolve it.

Regards,
Diwakar
Back to top
View user's profile Send private message
Sandy Zimmer

Active Member


Joined: 13 Jun 2007
Posts: 826
Location: Wilmington, DE

PostPosted: Wed Jul 23, 2008 5:22 pm
Reply with quote

Take a look at your PSB. How many databases are defined? Match them up with your linkage section and your entry statement. Make sure all are in the same sequence. Is this DLI, BMP ?
Back to top
View user's profile Send private message
perideepa

New User


Joined: 26 Sep 2007
Posts: 2
Location: india

PostPosted: Fri Aug 08, 2008 5:21 am
Reply with quote

Hi,

Check have you compiled the program witn IMS = YES in change man.
IF not please set this flag to Yes then compile, your problem will be resolved.
Otherwise remove the ENTRY statment put evrything in the PROCEUDRE DIVISION USING , it should solve your problem.

Peri
Back to top
View user's profile Send private message
Sandy Zimmer

Active Member


Joined: 13 Jun 2007
Posts: 826
Location: Wilmington, DE

PostPosted: Fri Aug 08, 2008 5:33 am
Reply with quote

perideepa - "Otherwise remove the ENTRY statment put evrything in the PROCEUDRE DIVISION USING , it should solve your problem. "

WHAT!!!! This is an IMS forum - to remove those statements would make that program NON_IMS!

Check the linkage section of this program and search the PSB datatset pds for corresponding nams.
Back to top
View user's profile Send private message
klippman

New User


Joined: 04 Sep 2008
Posts: 3
Location: Arizona

PostPosted: Sat Sep 06, 2008 3:24 am
Reply with quote

I just had this same abend and I resolved it by adding an IO-PCB as the first entry of my PCB's. Hope this works for you!
Back to top
View user's profile Send private message
ManSab

New User


Joined: 23 Sep 2006
Posts: 13
Location: Pune

PostPosted: Sun Nov 25, 2018 7:50 pm
Reply with quote

I was running into similar issue. Order pf PCB in the PSB and in the ENTRY statement were same. For me it worked by removing ENTRY statement and adding PROCEDURE DIVISION USING.

I understand it is old post but replying with my details so that it may help others.

Thanks
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 -> IMS DB/DC

 


Similar Topics
Topic Forum Replies
No new posts ISAM and abend S03B JCL & VSAM 10
No new posts Abend S0C4 11 (Page Translation Excep... PL/I & Assembler 16
No new posts WER999A - UNSUCCESSFUL SORT 8ED U Ab... SYNCSORT 5
No new posts the system or user abend SF0F R=NULL COBOL Programming 0
No new posts Need to get an DLI abend like U0200 IMS DB/DC 2
Search our Forums:

Back to Top