View previous topic :: View next topic
|
Author |
Message |
shamsundar_mk
New User
Joined: 18 May 2007 Posts: 30 Location: CHENNAI
|
|
|
|
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 |
|
|
Devzee
Active Member
Joined: 20 Jan 2007 Posts: 684 Location: Hollywood
|
|
|
|
is the DLI calls in sub routine? |
|
Back to top |
|
|
Bitneuker
CICS Moderator
Joined: 07 Nov 2005 Posts: 1104 Location: The Netherlands at Hole 19
|
|
|
|
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 |
|
|
Sandy Zimmer
Active Member
Joined: 13 Jun 2007 Posts: 826 Location: Wilmington, DE
|
|
|
|
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 |
|
|
avina
New User
Joined: 04 Dec 2007 Posts: 16 Location: Kolkata
|
|
|
|
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 |
|
|
|