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

Locate the segment without knowing the PCB's


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

New User


Joined: 18 May 2007
Posts: 30
Location: CHENNAI

PostPosted: Fri Jun 15, 2007 5:11 pm
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
Devzee

Active Member


Joined: 20 Jan 2007
Posts: 684
Location: Hollywood

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

is the DLI calls in sub routine?
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 Jun 15, 2007 6:50 pm
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

Active Member


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

PostPosted: Fri Jun 15, 2007 7:01 pm
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: 16
Location: Kolkata

PostPosted: Thu Sep 04, 2008 3:07 pm
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
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 Need to locate SMF Exit IEFUJI All Other Mainframe Topics 3
No new posts IMS SEGMENT READ ISSUE IMS DB/DC 1
No new posts Inserting records into the empty segm... IMS DB/DC 1
No new posts REORG to reduce segment size new DBD IMS DB/DC 2
No new posts How to find if segment is read in any... IMS DB/DC 12
Search our Forums:

Back to Top