View previous topic :: View next topic
|
Author |
Message |
pingte
Active User
Joined: 03 Dec 2005 Posts: 120 Location: india
|
|
|
|
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 |
|
|
rameshfoa
New User
Joined: 05 Apr 2007 Posts: 27 Location: chennai
|
|
|
|
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 |
|
|
pingte
Active User
Joined: 03 Dec 2005 Posts: 120 Location: india
|
|
|
|
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 |
|
|
Devzee
Active Member
Joined: 20 Jan 2007 Posts: 684 Location: Hollywood
|
|
|
|
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 |
|
|
pingte
Active User
Joined: 03 Dec 2005 Posts: 120 Location: india
|
|
|
|
thanks ramesh....
it would be nice if you can illustrate with a sample JCL and corresponding program... |
|
Back to top |
|
|
ahr
New User
Joined: 24 Apr 2007 Posts: 14 Location: India
|
|
|
|
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 |
|
|
pingte
Active User
Joined: 03 Dec 2005 Posts: 120 Location: india
|
|
|
|
Thanks a lot..
Now my doubts are cleared |
|
Back to top |
|
|
Bitneuker
CICS Moderator
Joined: 07 Nov 2005 Posts: 1104 Location: The Netherlands at Hole 19
|
|
|
|
ahr wrote
Quote: |
The joblib/steplib contains DBDLIB, PSBLIB datasets
|
.
Please look at what Devzee wrote |
|
Back to top |
|
|
pingte
Active User
Joined: 03 Dec 2005 Posts: 120 Location: india
|
|
|
|
Moderator,
Which one is correct? |
|
Back to top |
|
|
ahr
New User
Joined: 24 Apr 2007 Posts: 14 Location: India
|
|
|
|
Pinte,
Devzee is correct,
It's quite long time, not any more with programming.
so, any how you got the answer. |
|
Back to top |
|
|
Bitneuker
CICS Moderator
Joined: 07 Nov 2005 Posts: 1104 Location: The Netherlands at Hole 19
|
|
|
|
pingte wrote: |
Moderator,
Which one is correct? |
My post speakes for itself
@ahr: good of you to respond the way you did |
|
Back to top |
|
|
avina
New User
Joined: 04 Dec 2007 Posts: 16 Location: Kolkata
|
|
|
|
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 |
|
|
|