Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to communicate with PSB Through Program?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IMS DB/DC
View previous topic :: :: View next topic  
Author Message
pingte

Active User


Joined: 03 Dec 2005
Posts: 120
Location: india

PostPosted: Mon Apr 30, 2007 3:28 pm    Post subject: How to communicate with PSB Through Program?
Reply with quote

hi,

I have a PSB. PSB contains 3 PCB's - PCB1, PCB2, PCB3.

How will my IMS-COBOL prgram communicate with this PSB?

Is there any specific call that needs to be made?

Please give some examples (with syntax)

thanks
Back to top
View user's profile Send private message

rameshfoa

New User


Joined: 05 Apr 2007
Posts: 27
Location: chennai

PostPosted: Mon Apr 30, 2007 5:51 pm    Post subject: Re: How to communicate with PSB Through Program?
Reply with quote

Whenever the IMS call is executed...for ex

CALL CBLTDLI USING GN
PCB1
IOAREA
SSA

in the above ex...PCB1 will be checked in procedure division and will be looked into the PSB given in the JCL step executing this program. let me know if I answered ur question...
Back to top
View user's profile Send private message
pingte

Active User


Joined: 03 Dec 2005
Posts: 120
Location: india

PostPosted: Tue May 01, 2007 9:07 am    Post subject: Re: How to communicate with PSB Through Program?
Reply with quote

thanks ramesh for the answer

Will the PSBLIB be part of the STEPLIB?

and i have one more doubt....

while starting the procedure divison....
will the code look like this...

Code:
PROCEDURE DIVISION USING PCB1
                                                      PCB2
                                                      PCB3


Thanks
Back to top
View user's profile Send private message
Devzee

Active Member


Joined: 20 Jan 2007
Posts: 684
Location: Hollywood

PostPosted: Tue May 01, 2007 9:15 am    Post subject:
Reply with quote

Quote:
Will the PSBLIB be part of the STEPLIB?


PSBLIB is not part of STEPLIB, instead the IMS DBDLIB and PSBLIB are given in IMS DD name

Quote:

while starting the procedure divison....


You can either use Procedure division USING PCB List
or the first statement should be ENTRY 'DLITCBL' [/quote]
Back to top
View user's profile Send private message
pingte

Active User


Joined: 03 Dec 2005
Posts: 120
Location: india

PostPosted: Tue May 01, 2007 9:33 am    Post subject:
Reply with quote

thanks ramesh....

it would be nice if you can illustrate with a sample JCL and corresponding program...
Back to top
View user's profile Send private message
ahr

New User


Joined: 24 Apr 2007
Posts: 14
Location: India

PostPosted: Thu May 10, 2007 12:53 pm    Post subject:
Reply with quote

Pingte,

I am trying to answer your question,

When you submit your jcl, there is PARM='DLI,pgmname,psbname,,,,,,,'
The joblib/steplib contains DBDLIB, PSBLIB datasets

The system knows which PSB needs to searched because of the PARM, the PSB contains PCB's and PCB knows/tells which Database needs to be accessed for that application program.

The procedure division using PCB1 PCB2 PCB3 gives addressbility of the PCB's.

When IMS call gets executed in application program, it knows where to look for PCB and corresponding Database.

Hope I answered your question, I feel the best book to refer for IMS is by Steve Echols.

I don't have any jcls to give you for example.
Back to top
View user's profile Send private message
pingte

Active User


Joined: 03 Dec 2005
Posts: 120
Location: india

PostPosted: Thu May 10, 2007 1:15 pm    Post subject:
Reply with quote

Thanks a lot..
Now my doubts are cleared icon_biggrin.gif
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: Thu May 10, 2007 3:19 pm    Post subject:
Reply with quote

ahr wrote
Quote:
The joblib/steplib contains DBDLIB, PSBLIB datasets
.

Please look at what Devzee wrote icon_idea.gif
Back to top
View user's profile Send private message
pingte

Active User


Joined: 03 Dec 2005
Posts: 120
Location: india

PostPosted: Thu May 10, 2007 5:50 pm    Post subject:
Reply with quote

Moderator,

Which one is correct?
Back to top
View user's profile Send private message
ahr

New User


Joined: 24 Apr 2007
Posts: 14
Location: India

PostPosted: Thu May 10, 2007 8:53 pm    Post subject:
Reply with quote

Pinte,

Devzee is correct,

It's quite long time, not any more with programming.
so, any how you got the answer.
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 May 11, 2007 12:13 am    Post subject:
Reply with quote

pingte wrote:
Moderator,

Which one is correct?


My post speakes for itself icon_wink.gif

@ahr: good of you to respond the way you did icon_biggrin.gif
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 6:37 pm    Post subject:
Reply with quote

DFSRC000, PARM='DLI,pgmname,psbname,,,,,,,'
The joblib/steplib contains DBDLIB, PSBLIB datasets

The system knows which PSB needs to searched because of the PARM, the PSB contains PCB's and PCB knows/tells which Database needs to be accessed for that application program.

The procedure division using PCB1 PCB2 PCB3 gives addressbility of the PCB's.
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 Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm
No new posts pre-compiler for program in an HFS Pedro DB2 0 Fri Jun 23, 2017 11:13 pm
No new posts Compiling program in endeavor for tra... RALAKKAL Compuware & Other Tools 4 Mon Jun 05, 2017 8:27 pm
No new posts COBOL DB2 program - zIIP eligible vasanthz COBOL Programming 7 Wed May 31, 2017 5:12 am
No new posts DB2 Program abending without giving a... rahulgarg14 DB2 7 Mon May 29, 2017 8:10 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us