Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
Locate the segment without knowing the PCB's

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IMS DB/DC
Author Message
shamsundar_mk

New User


Joined: 18 May 2007
Posts: 23
Location: CHENNAI

PostPosted: Fri Jun 15, 2007 5:11 pm    Post subject: Locate the segment without knowing the PCB's
Reply with quote

Hi all,

I am new to IMS, i can't understand that while we are writing the programs we did not mention the PCB's, we are just giving the PSB's. so how the program is going to locate the segment without knowing the PCB's.
Back to top
View user's profile Send private message
References
Devzee

Senior Member


Joined: 20 Jan 2007
Posts: 708
Location: Hollywood

PostPosted: Fri Jun 15, 2007 6:45 pm    Post subject:
Reply with quote

is the DLI calls in sub routine?
Back to top
View user's profile Send private message
Bitneuker

IMS Moderator


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

PostPosted: Fri Jun 15, 2007 6:50 pm    Post subject:
Reply with quote

Why don't you post the piece of program you're confused about? Also post the PSB please. Does any of your modules contain the PCB-DLIcall?

Also remember that one doesn't specify PSB's in a program but the PCB's defined in the PSB. Don't confuse PSB with PCB's.
Back to top
View user's profile Send private message
Sandy Zimmer

Senior Member


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

PostPosted: Fri Jun 15, 2007 7:01 pm    Post subject: Re: Query on IMS DB/DC
Reply with quote

Hi!

The PSB is written in Assembler and gen'd into the IMS system. It contains each database that your program will need and the processing options you will be using.

PCB's are in the linkage section of your program. This must be in the same sequence as defined in your PSB. When issuing IMS calls, the PCB for that particular database contains all of the info from that return call. After each IMS call, you must look at what your return code is. There are other fields that are extremely helpful in determing POSITION and key values returned, segment level, etc. NEVER-EVER-EVER move anything into your PCB - it belongs to IMS.

Your entry statement must contain all of the PCB's in your linkage section - in that EXACT order.
Back to top
View user's profile Send private message
avina

New User


Joined: 04 Dec 2007
Posts: 4
Location: Kolkata

PostPosted: Thu Sep 04, 2008 3:07 pm    Post subject:
Reply with quote

Hi,

PCBs are the main communication block ofr your application pgm to communicate with the IMS db. The Linkage section will have the PCBs in the same order as in PSB, else your program will not work. Then include the Root and the other segments copybooks,if any, in the the working storage before you make the ENTRY 'DLITCBL' USING the PCBs in the Procedure Section.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IMS DB/DC All times are GMT + 6 Hours
Page 1 of 1