View previous topic :: View next topic
|
Author |
Message |
Deepthy Jose P
New User
Joined: 07 Mar 2007 Posts: 40 Location: India
|
|
|
|
I have an IMS batch Program which requires a Secondary index DB access(IMS). The system contains an online PSB with the Secondary index DB defined. Can i use the same PSB in my batch program? |
|
Back to top |
|
|
Sandy Zimmer
Active Member
Joined: 13 Jun 2007 Posts: 826 Location: Wilmington, DE
|
|
|
|
No. |
|
Back to top |
|
|
Sandy Zimmer
Active Member
Joined: 13 Jun 2007 Posts: 826 Location: Wilmington, DE
|
|
|
|
I have said this many times - each program should have it's own PSB - name matches name of program. It would be very easy to copy the current PSB removing access to online. |
|
Back to top |
|
|
Deepthy Jose P
New User
Joined: 07 Mar 2007 Posts: 40 Location: India
|
|
|
|
Each program having it's own PSB is just a programming Practise. We can use the same PSB for more than one program also. Here my requirement is that i need to use the existing PSB for the new batch program and my question is, How do I use the online PSB for my IMS batch program? |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
Here my requirement is that i need to use the existing PSB for the new batch program |
No, you don't need to - you just want to.
Quote: |
Each program having it's own PSB is just a programming Practise |
Yes, it is - and a very good one. Indeed, one that is a standard many places.
Quote: |
We can use the same PSB for more than one program also |
Another of the many things that while they can be done, are better not done. If you ever are responsible for impact analysis, you will have a better understanding of this.
I suggest you go back and read the first reply to your initial post in this topic. . . |
|
Back to top |
|
|
Sandy Zimmer
Active Member
Joined: 13 Jun 2007 Posts: 826 Location: Wilmington, DE
|
|
|
|
Each program having it's own psb is a standard in most IMS shops. The consequences of using a shared psb are huge. Like Dick said -- think about impact analysis. It is very easy to copy a psb - compile it and make it your own. |
|
Back to top |
|
|
|