PCB address in BMP



IBM's hierarchical database management system with a Database Manager (IMS DB) and a Transaction Manager(IMS DC)

PCB address in BMP

Postby mehi1353 » Wed Aug 17, 2011 2:54 pm

Hi all,

In running a BMP program, I encoutered U0476 abend.
I think the problem is "INVALID PCB ADDRESS"

I want to know,how i can pass the pcb number to my cobol program?
my psb just have 1 pcb:

PRINT NOGEN
* PCB NO. 1
PCB TYPE=DB,DBDNAME=RETDTRAN, *
PROCOPT=G,KEYLEN=33
SENSEG NAME=TRANACCT,PARENT=0
SENSEG NAME=TRANNORM,PARENT=TRANACCT
*
PSBGEN LANG=COBOL,PSBNAME=FCSBT888,CMPAT=YES
END

all the best,
Mehrdad
mehi1353
 
Posts: 40
Joined: Sun Jan 11, 2009 4:51 pm
Has thanked: 0 time
Been thanked: 0 time

Re: PCB address in BMP

Postby NicC » Wed Aug 17, 2011 10:42 pm

We need to see your COBOL code - in particular the LINKAGE and USING.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

Re: PCB address in BMP

Postby Ed Goodman » Wed Aug 17, 2011 10:51 pm

Also, make double-sure that you have the DLITCBL entry statement linked in your compile/link JCL. 9 times out of 10, that's what causes this error at my shop. People use their "normal" JCL to compile link something that used IMS, but forget about the DLITCBL entry in the link step.

But still, post the LINKAGE/USING of the called program, and the CALL of the calling program.

Also, also, see that "CMPAT=YES" at teh bottom of the PSB definition? That adds an I-O PCB to the top. So you really have TWO PCBs in the generated PSB.
Ed Goodman
 
Posts: 341
Joined: Thu Feb 24, 2011 12:05 am
Has thanked: 3 times
Been thanked: 17 times

Re: PCB address in BMP

Postby dick scherrer » Thu Aug 18, 2011 12:02 am

Hello,

Posting the same question in multiple forums is not acceptable. . .

This topic is being locked.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times


Return to IMS DB/DC