Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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
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    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

Devzee

Active Member


Joined: 20 Jan 2007
Posts: 684
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

CICS Moderator


Joined: 07 Nov 2005
Posts: 1105
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

Active Member


Joined: 13 Jun 2007
Posts: 826
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: 16
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
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IMS DB/DC All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts copying data without knowing location Arun Raj DFSORT/ICETOOL 12 Thu Jul 20, 2017 1:03 pm
No new posts Locate a label set by anothet macro swathykrishnan TSO/ISPF 4 Thu Sep 03, 2015 12:32 pm
No new posts Help needed to locate the changes wh... thesumitk TSO/ISPF 6 Fri Jun 12, 2015 6:21 pm
No new posts S0C7 abend not able to locate Rijit COBOL Programming 8 Wed Apr 01, 2015 4:03 pm
No new posts how to delete datasets without knowin... boyti ko JCL & VSAM 7 Thu Mar 26, 2015 7:13 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us